/* ================================
   GLOBAL BACKGROUND + THEME
================================ */
.input-error {
    border: 2px solid #dc2626 !important;
    background: #fff5f5;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("../images/bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ================================
   GLASS CARD STYLE
================================ */

.glass-card {

    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 16px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.3);

    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ================================
   PAGE TITLE
================================ */

.page-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    margin-bottom: 20px;
}

/* ================================
   FORM ELEMENTS
================================ */

label {
    display: block;
    margin-top: 14px;
    color: #000000;
    font-weight: 600;
}

input, select, textarea {
    width: 95%;
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

/* ================================
   BUTTONS
================================ */

button {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #1e40af;
}

/* ================================
   ALERTS
================================ */

.success {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 14px;
    text-align: center;
    font-weight: 600;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 14px;
    text-align: center;
    font-weight: 600;
}
/* ================================
   COMPANY LOGO (GLOBAL)
================================ */

.logo-container {
    text-align: center;
    margin-bottom: 14px;
}

.company-logo {
    max-height: 48px;      /* standard login/logo size */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}
/* ================================
   AUTH ACTION LINKS (LOGIN PAGE)
================================ */

.auth-links {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.secondary-btn {
    display: block;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.85);
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #c7d2fe;
}

.secondary-btn:hover {
    background: #e0e7ff;
}

.link-btn {
    font-size: 13px;
    color: #e5e7eb;
    text-decoration: underline;
}

.link-btn:hover {
    color: #ffffff;
}
/* ================================
   TOP BAR (MY TICKETS)
================================ */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    color: #ffffff;
    font-size: 28px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.header-right {
    display: flex;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

.stat-title {
    font-size: 14px;
    color: #374151;
}

.stat-value {
    font-size: 34px;
    font-weight: 800;
}

.completed { border-left: 6px solid #16a34a; }
.pending { border-left: 6px solid #facc15; }
.progress { border-left: 6px solid #2563eb; }

.chart-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
}
/* ===============================
   IT SUPPORT DASHBOARD
================================ */

.dashboard-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
}

/* HEADER */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.dashboard-title {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,.6);
}

.dashboard-actions {
    
    display: flex;
    gap: 12px;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.stat-label {
    font-size: 14px;
    color: #374151;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-top: 8px;
}

/* STATUS COLORS */
.stat-green { border-left: 6px solid #16a34a; }
.stat-yellow { border-left: 6px solid #facc15; }
.stat-blue { border-left: 6px solid #2563eb; }

/* CHART CARD */
.chart-card {
    max-width: 600px;
    margin: auto;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

}

/* ===============================
   DASHBOARD STAT BUTTONS
================================ */

/* ===============================
   STAT CARD BUTTON BEHAVIOR
================================ */

.stat-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.stat-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.stat-link:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.stat-link:visited,
.stat-link:focus,
.stat-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Optional subtle glow */
.stat-green:hover {
    box-shadow: 0 0 0 2px rgba(22,163,74,0.4),
                0 18px 45px rgba(0,0,0,0.25);
}

.stat-yellow:hover {
    box-shadow: 0 0 0 2px rgba(250,204,21,0.4),
                0 18px 45px rgba(0,0,0,0.25);
}

.stat-blue:hover {
    box-shadow: 0 0 0 2px rgba(37,99,235,0.4),
                0 18px 45px rgba(0,0,0,0.25);
}

.danger-btn {
    padding: 8px 14px;
    border-radius: 10px;
    background: #dc2626;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}
/* ===============================
   COLOR-WISE STAT CARD HOVERS
================================ */

/* TOTAL (neutral / default) */
.stat-link:not(.stat-green):not(.stat-yellow):not(.stat-blue):hover {
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.5),
        0 18px 45px rgba(0,0,0,0.25);
}

/* COMPLETED — GREEN */
.stat-green:hover {
    box-shadow:
        0 0 0 3px rgba(22,163,74,0.45),
        0 18px 45px rgba(0,0,0,0.25);
}

/* PENDING — YELLOW */
.stat-yellow:hover {
    box-shadow:
        0 0 0 3px rgba(250,204,21,0.5),
        0 18px 45px rgba(0,0,0,0.25);
}

/* IN PROGRESS — BLUE */
.stat-blue:hover {
    box-shadow:
        0 0 0 3px rgba(37,99,235,0.45),
        0 18px 45px rgba(0,0,0,0.25);
}
/* ===============================
   TICKETS TABLE
================================ */

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden; /* round header corners */
}

.ticket-table th,
.ticket-table td {
    padding: 12px 14px;
    text-align: left;
}

.ticket-table thead {
    /* match the primary table look used elsewhere */
    background: rgba(37, 99, 235, 0.95);
}

.ticket-table th {
    color: #000000;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.ticket-table td {
    color: #111827;
   background: rgba(255, 255, 255, 0.15);
    border-collapse: collapse;
}

.ticket-table tbody tr:nth-child(even) td {
    background-color: transparent;
}

.ticket-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ticket-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.95);
}

.ticket-table tbody tr:hover td {
    background: rgba(248, 250, 252, 0.95);
}

/* Status pills for tables */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.06);
}
.status-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-right: 8px;
    background: currentColor;
    opacity: 0.85;
}
.status-PENDING { background: #fef3c7; color: #92400e; }
.status-IN_PROGRESS { background: #dbeafe; color: #1e40af; }
.status-COMPLETED { background: #d1fae5; color: #065f46; }
.status-NEW { background: #e0e7ff; color: #3730a3; }
.status-RESOLVED { background: #dcfce7; color: #166534; }
.status-CLOSED { background: #e5e7eb; color: #374151; }

/* Dashboard/table section heading */
.section-title {
    padding: 16px 18px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Ticket link styling inside tables */
.ticket-link {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}
.ticket-link:hover {
    text-decoration: underline;
}
.primary-btn {
    padding: 8px 14px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}
/* ===============================
   COMPACT TABLE ACTION CONTROLS
================================ */

/* Keep action cell compact */
.action-cell {
    white-space: nowrap;
}

/* Reduce dropdown size */
.action-cell select {
    width: auto;              /* prevent full width */
    min-width: 120px;
    padding: 4px 6px;
    font-size: 13px;
    height: 32px;
    border-radius: 6px;
}

/* Reduce button size */
.action-cell .small-btn {
    padding: 4px 10px;
    width: auto;
    font-size: 13px;
    height: 32px;
    line-height: 0;
    margin-left: 6px;
    margin-top: 1px;
}

/* Align form inline */
.action-cell form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Reduce row height */
.ticket-table td,
.ticket-table th {
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
}
.success-btn {
     padding: 8px 14px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.success-btn:hover {
    background: #15803d;
}
