/* Custom admin styles */

/* Admin header customization */
#header {
    background: #2c3e50;
    color: #ecf0f1;
}

#header h1 {
    color: #ecf0f1;
}

#header h1 a:link,
#header h1 a:visited {
    color: #ecf0f1;
}

/* Admin navigation */
.module h2, .module caption, .inline-group h2 {
    background: #34495e;
    color: #ecf0f1;
}

/* Buttons */
.button, input[type=submit], input[type=button], .submit-row input, a.button {
    background: #3498db;
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.button:hover, input[type=submit]:hover, input[type=button]:hover, .submit-row input:hover, a.button:hover {
    background: #2980b9;
}

.button.default, input[type=submit].default, .submit-row input.default {
    background: #27ae60;
}

.button.default:hover, input[type=submit].default:hover, .submit-row input.default:hover {
    background: #229954;
}

/* Tables */
.results table {
    border-collapse: collapse;
    width: 100%;
}

.results th {
    background: #ecf0f1;
    border-bottom: 2px solid #bdc3c7;
    padding: 10px;
    text-align: left;
}

.results td {
    padding: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.results tr:hover {
    background: #f8f9fa;
}

/* Form styling */
.form-row {
    margin-bottom: 15px;
}

.form-row label {
    font-weight: bold;
    color: #2c3e50;
}

/* Dashboard styling */
.dashboard .module table {
    width: 100%;
}

.dashboard .module table th {
    background: #34495e;
    color: #ecf0f1;
    padding: 8px;
}

.dashboard .module table td {
    padding: 8px;
    border-bottom: 1px solid #ecf0f1;
}

/* Custom widget styling */
.vTextField, .vTextarea, .vEmailField, .vURLField {
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
}

.vTextField:focus, .vTextarea:focus, .vEmailField:focus, .vURLField:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Error styling */
.errorlist {
    background: #e74c3c;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.errorlist li {
    list-style: none;
}

/* Success messages */
.success {
    background: #27ae60;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Info messages */
.info {
    background: #3498db;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Warning messages */
.warning {
    background: #f39c12;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Modern Dashboard Enhancements */
.admin-nav-global {
    background: linear-gradient(135deg, #0078d4, #106ebe);
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-nav-global .nav-item {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.admin-nav-global .nav-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.admin-nav-global .nav-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Dashboard Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #0078d4;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0078d4;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
}

.stat-card .change {
    font-size: 0.9rem;
    margin-top: 8px;
}

.stat-card .change.positive {
    color: #107c10;
}

.stat-card .change.negative {
    color: #d13438;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.quick-action {
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,120,212,0.3);
    color: white;
    text-decoration: none;
}

.quick-action i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Activity Feed */
.recent-activity {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.recent-activity h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0078d4;
    padding-bottom: 10px;
}

.activity-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0078d4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.activity-content {
    flex: 1;
}

.activity-time {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-nav-global {
        flex-direction: column;
    }

    .admin-nav-global .nav-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}
