/* Custom admin styles for TehpodWork Helpdesk */

/* Global background */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Header */
#header {
    background: linear-gradient(90deg, #2c3e50, #4a6491);
    color: white;
    border-bottom: 4px solid #0d6efd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#header a:link, #header a:visited {
    color: #fff;
    font-weight: 600;
}

#header a:hover {
    color: #0d6efd;
}

/* Branding */
#branding h1 {
    font-size: 1.8rem;
    font-weight: 700;
    padding: 10px 0;
}

/* Content wrapper */
#content {
    padding: 25px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Main content block */
#content-main {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5eb;
}

/* Dashboard cards */
.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    border-left: 6px solid #0d6efd;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd, #9b59b6);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.dashboard-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card h3::before {
    content: '📊';
    font-size: 1.2em;
}

.dashboard-card ul {
    list-style: none;
    padding-left: 0;
}

.dashboard-card li {
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid transparent;
    transition: border-color 0.3s;
}

.dashboard-card li:hover {
    border-left-color: #0d6efd;
}

.dashboard-card a {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    border-left: 4px solid #0d6efd;
    transition: all 0.3s;
}

.dashboard-card a:hover {
    background: #e9ecef;
    color: #0d6efd;
    padding-left: 20px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 15px 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    margin: 0 8px;
    border: 1px solid #dee2e6;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #e9ecef, #dde1e6);
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #0d6efd;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.quick-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

.quick-action-btn:hover {
    background: linear-gradient(90deg, #0b5ed7, #084298);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
}

/* Tables */
.module table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.module table th {
    background: linear-gradient(90deg, #2c3e50, #4a6491);
    color: white;
    font-weight: 600;
    border: none;
    padding: 14px;
}

.module table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eaeaea;
}

.module table tr:hover td {
    background-color: #f8f9fa;
}

/* Buttons */
.button, input[type="submit"], input[type="button"], .submit-row input {
    background: linear-gradient(90deg, #28a745, #20c997);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
}

.button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background: linear-gradient(90deg, #20c997, #1e9e8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

/* Sidebar */
#content-related {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid #e1e5eb;
}

/* Login page */
.login .form-row {
    margin-bottom: 20px;
}

.login input[type="text"], .login input[type="password"] {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.login input[type="text"]:focus, .login input[type="password"]:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Footer */
#footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 20px;
    text-align: center;
    border-top: 4px solid #0d6efd;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    .quick-actions {
        flex-direction: column;
    }
    .quick-action-btn {
        min-width: 100%;
    }
}
