/*
|--------------------------------------------------------------------------
| Support System Stylesheet
|--------------------------------------------------------------------------
|
| File: /home3/arrybaco/public_html/support/assets/style.css
|
|--------------------------------------------------------------------------
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1d4ed8;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand:hover {
    color: #1e40af;
}

/* Navigation */
.site-navigation {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
}

.site-navigation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background-color: transparent;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.site-navigation-link:hover {
    background-color: #f1f5f9;
    color: #1d4ed8;
}

.site-navigation-link.active {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

/* User Menu */
.site-user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    padding-left: 1rem;
    border-left: 1px solid #e2e8f0;
}

.site-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.site-user-name {
    display: block;
    color: #172033;
    font-size: 0.875rem;
    font-weight: 700;
}

.site-user-role {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.site-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background-color: #fee2e2;
    color: #b91c1c;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.site-logout-link:hover {
    background-color: #fecaca;
    color: #991b1b;
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 2rem 0;
}

.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer */
.site-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer p {
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
button,
input[type="submit"],
.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 0;
    border-radius: 0.375rem;
    background-color: #1d4ed8;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
a.btn:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:active,
input[type="submit"]:active,
.btn:active,
a.btn:active {
    transform: translateY(0);
}

button:disabled,
input[type="submit"]:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Button Variants */
.btn-secondary,
button.secondary,
input[type="submit"].secondary {
    background-color: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover,
button.secondary:hover,
input[type="submit"].secondary:hover {
    background-color: #f1f5f9;
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.btn-danger,
button.danger,
input[type="submit"].danger {
    background-color: #b91c1c;
}

.btn-danger:hover,
button.danger:hover,
input[type="submit"].danger:hover {
    background-color: #991b1b;
}

.btn-success,
button.success,
input[type="submit"].success {
    background-color: #15803d;
}

.btn-success:hover,
button.success:hover,
input[type="submit"].success:hover {
    background-color: #166534;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

thead {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

th {
    padding: 0.875rem;
    color: #172033;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 0.875rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.875rem;
}

tbody tr:hover {
    background-color: #f8fafc;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Cards */
.card,
.panel {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header,
.panel-header {
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h2,
.card-header h3,
.panel-header h2,
.panel-header h3 {
    margin: 0;
    color: #172033;
    font-size: 1.125rem;
}

.card-body,
.panel-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Messages and Alerts */
.alert,
.message {
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-success,
.message.success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error,
.alert-danger,
.message.error,
.message.danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning,
.message.warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info,
.message.info {
    background-color: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}

/* Badges */
.badge,
.label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* Utility Classes */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-2 { padding-top: 1rem; }
.pb-2 { padding-bottom: 1rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-muted { color: #64748b; }
.text-dark { color: #172033; }

.w-100 { width: 100%; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .site-navigation {
        width: 100%;
        justify-content: flex-start;
    }

    .site-user-menu {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding-top: 1rem;
        padding-left: 0;
    }

    .site-container {
        padding: 0 1rem;
    }

    table {
        font-size: 0.75rem;
    }

    th, td {
        padding: 0.5rem;
    }

    .card-body,
    .panel-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .site-brand {
        font-size: 1rem;
    }

    .site-navigation-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .site-user-details {
        display: none;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px;
    }

    button,
    .btn,
    a.btn {
        width: 100%;
    }
}