/* Add animation keyframes */
@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

@keyframes slideInUp { 
    from { transform: translateY(20px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f6f9;
    color: #333;
}

.container {
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    height: 100vh;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.logo h2 {
    margin: 0;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #34495e;
    font-weight: 600;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.menu li a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.menu li a:hover, .menu li a.active {
    background-color: #3498db;
    color: #fff;
}

.main-content {
    flex: 1;
    animation: fadeIn 0.5s ease-in-out;
}

.header {
    background-color: #fff;
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.content {
    padding: 30px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: left;
    animation: slideInUp 0.6s ease-out;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.orders-table, .customers-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

.orders-table th, .orders-table td, 
.customers-table th, .customers-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
    text-align: left;
}

.orders-table th, .customers-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    animation: slideInUp 0.4s;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Status Styles */
.status-pending { color: #f39c12; font-weight: 500; }
.status-shipped { color: #3498db; font-weight: 500; }
.status-delivered { color: #2ecc71; font-weight: 500; }
.status-canceled { color: #e74c3c; font-weight: 500; }
