/* base.css - Kompakte Grundlegende Styles und Layout */

/* CSS Variables */
:root {
    --primary-color: #E73151;
    --accent-color: #666;
    --text-color: #212529;
    --background-color: #f8f9fa;
    --light-gray: #6c757d;
    --border-color: #dee2e6;
    --hover-color: #f1f3f4;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --header-gradient-start: #4a5568;
    --header-gradient-end: #2d3748;
    --dark-gray: #404040;
    --dark-gray-hover: #505050;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Kompakte Buttons */
.btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    height: 40px;
    box-sizing: border-box;
}

.btn:hover {
    background: #d02847;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-reset {
    background: var(--accent-color);
    padding: 0.5rem;
    min-width: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset:hover {
    background: #555;
}

.btn-create {
    background: #28a745;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-create:hover {
    background: #218838;
}

.btn-secondary {
    background: var(--accent-color);
    height: 40px;
}

.btn-secondary:hover {
    background: #555;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2.5rem;
    color: var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.loading i {
    font-size: 1.8rem;
    animation: spin 1s linear infinite;
}

/* Button im Loading-State: kompakte Form beibehalten, nur Icon animieren */
.btn.loading {
    padding: 0.5rem 1rem;
    flex-direction: row;
    text-align: left;
    height: 40px;
    color: white;
}

.btn.loading i {
    font-size: 0.8rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error Messages */
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    margin: 0.8rem 0;
    border-left: 4px solid #dc3545;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.no-results {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.no-results i {
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        height: 36px;
    }
    
    .btn-reset {
        padding: 0.4rem;
        min-width: 36px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        height: 34px;
    }
    
    .btn-reset {
        padding: 0.35rem;
        min-width: 34px;
        width: 34px;
        height: 34px;
    }
}