/* Main Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Container Styles */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Card Styles */
.card {
    width: 100%;
    max-width: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    border: none;
}

.card-body {
    padding: 25px;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

/* Table Styles */
.table {
    width: 100%;
    min-width: 900px;
    margin-bottom: 0;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 12px;
}

.table td {
    padding: 12px;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.02);
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert .btn-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.7;
    cursor: pointer;
}

/* Login Container */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Header Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.dashboard-header h2 {
    color: var(--primary-color);
    margin: 0;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: var(--border-radius);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .table {
        min-width: 700px;
    }
}

@media (max-width: 900px) {
    .table {
        min-width: 500px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 5px;
    }
    .card-body {
        padding: 10px;
    }
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .table-responsive {
        margin: 0 -5px;
    }
    .table {
        min-width: 350px;
    }
    .alert {
        padding: 10px 30px 10px 10px;
        font-size: 0.95rem;
    }
    .alert .btn-close {
        top: 8px;
        right: 10px;
        font-size: 1rem;
    }
} 