/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: Arial, sans-serif; 
    background: #f0f2f5; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh;
    padding: 20px;
}

/* Container Styles */
.container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 1200px;
    text-align: center;
}

/* Typography */
h2 { 
    color: #333; 
    margin-bottom: 20px;
    font-size: 28px;
}

h3 {
    color: #555;
    margin-bottom: 15px;
}

/* Table Styles */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
    background: #fff;
}

th, td { 
    border: 1px solid #ddd; 
    padding: 12px; 
    text-align: center; 
    vertical-align: middle;
}

th { 
    background: #007BFF; 
    color: white; 
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e3f2fd;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 8px 16px;
    margin: 2px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Button Color Variations */
.edit { 
    background: #17a2b8; 
    color: white; 
}

.edit:hover { 
    background: #117a8b; 
}

.activate { 
    background: #28a745; 
    color: white; 
}

.activate:hover { 
    background: #218838; 
}

.deactivate { 
    background: #dc3545; 
    color: white; 
}

.deactivate:hover { 
    background: #a71d2a; 
}

.delete { 
    background: #6c0000; 
    color: white; 
}

.delete:hover { 
    background: #450000; 
}

/* Action Buttons */
.add-btn {
    display: inline-block;
    margin-bottom: 15px;
    background: #007BFF;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.add-btn:hover { 
    background: #0056b3; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.back-btn {
    display: inline-block;
    margin-bottom: 15px;
    margin-left: 10px;
    background: #6c757d;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover { 
    background: #5a6268; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108,117,125,0.3);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Status Styles */
.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px 4px;
    }
    
    .button {
        padding: 6px 12px;
        font-size: 12px;
        margin: 1px;
    }
    
    .add-btn, .back-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .container {
        padding: 15px;
    }
    
    table {
        font-size: 10px;
    }
    
    .button {
        padding: 4px 8px;
        font-size: 10px;
    }
}