/* main.css */
:root {
    --primary-white: #ffffff;
    --secondary-white: #f8f9fa;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #424242;
    --text-gray: #212121;
    --border-gray: #bdbdbd;
    --accent-gray: #757575;
    --success: #66bb6a;
    --warning: #ffa726;
    --error: #ef5350;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
    --border-radius: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--secondary-white) 100%);
    min-height: 100vh;
    color: var(--text-gray);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Card Styles */
.card {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--dark-gray);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-gray);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--medium-gray);
    color: var(--text-gray);
}

.btn-secondary:hover {
    background: var(--border-gray);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--medium-gray);
    color: var(--text-gray);
}

.btn-outline:hover {
    background: var(--light-gray);
    border-color: var(--border-gray);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--primary-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gray);
    box-shadow: 0 0 0 2px rgba(117, 117, 117, 0.1);
}

/* Table Styles */
.table-container {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--medium-gray);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--light-gray);
    color: var(--text-gray);
    padding: 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--medium-gray);
}

.table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--medium-gray);
    font-size: 0.9rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: var(--secondary-white);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 3px solid;
    background: var(--primary-white);
}

.alert-info {
    border-color: var(--accent-gray);
    background: var(--light-gray);
}

.alert-error {
    border-color: var(--error);
    background: #ffebee;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gray { color: var(--text-gray); }
.text-dark { color: var(--dark-gray); }
.bg-light { background: var(--light-gray); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Compact Styles */
.compact-table {
    font-size: 0.85rem;
}

.compact-table th,
.compact-table td {
    padding: 0.6rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .table {
        min-width: 600px;
    }
    
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.4s ease-out;
}