/*!
 * Project: NITCO Customer Dashboard
 * Description: Branded stylesheet (light theme, NITCO colors)
 * Author: NITCO Developers
 */

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 600;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
    z-index: 0;
}

.optEnabled {
    color: #009900;
    font-weight: 700;
    text-transform: uppercase;
}

.optDisabled {
    color: #ff0000;
    font-weight: 700;
    text-transform: uppercase;
}

.content-wrapper,
.dashboard-container {
    position: relative;
    min-height: 100vh;
    width: 100%
}

.dashboard-container {
    display: flex;
    color: #333;
   /* background: linear-gradient(135deg, #C61424 10%, #170204 90%); */
   background: linear-gradient(135deg, #C61424 35%, #eaeaea 35%);
    z-index:100;
}

.login-container {
    position: fixed;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index:101;
}

.login-window {
    width: 100%;
    max-width: 480px;
    background: #eaeaea;
    border-radius: 12px;
    box-shadow: 5px 4px 20px rgba(0, 0, 0, 0.1);
    color: #333;
    padding: 30px;
    opacity:.95;
    border: 1px solid #ddd
}

.login-header {
    text-align: center;
    margin-bottom: 25px
}

.login-title {
    margin: 0;
    font-size: 1.8em;
    color: #004b8d
}

.login-subtitle {
    color: #666;
    margin-top: 5px;
    font-size: 0.95em
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #fff;
    border-color: transparent;
    border-radius: 25px 25px 0 25px;
    color: #333;
    font-size: 1em;
    box-sizing: border-box
}

.login-form input:focus {
    outline: none;
    border-color: #004b8d;
    box-shadow: 0 0 5px rgba(0, 75, 141, 0.2)
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #3a2627;
    background-image: linear-gradient(90deg, #c61d23 0%, #ef4b24 80%);
    background-size: 200% 100%;
    background-position: left;
    border-radius: 39px;
    box-shadow: none;
    box-sizing: border-box;
    color: #fff;
    display: inline-block;
    fill: #fff;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.2s ease;
    border: none
}

.formbutton {
    max-width: 200px;
    padding: 12px;
    background-color: #3a2627;
    background-image: linear-gradient(90deg, #c61d23 0%, #ef4b24 80%);
    background-size: 200% 100%;
    background-position: left;
    border-radius: 39px;
    box-shadow: none;
    box-sizing: border-box;
    color: #fff;
    display: inline-block;
    fill: #fff;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.2s ease;
    border: none
}

.formbutton:hover {
    background-position: right;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(198, 29, 35, 0.4)
}

.formbutton:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(198, 29, 35, 0.3)
}

/* Custom select wrapper for better control */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    pointer-events: none;
}

.select-wrapper select {
    padding-right: 48px;
    /* Extra space for custom arrow */
    width: 100%;
}

.login-form button:hover {
    background-position: right;
    transform: scale(1.02)
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    color: #555;
    font-size: 0.9em
}

.login-footer a {
    color: #004b8d;
    text-decoration: none
}

.login-blurb {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 20px;
    color: #fff
}

.login-blurb h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: #e31937;
    margin-bottom: 12px
}

.login-blurb p {
    font-size: 1em;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
    max-width: 420px;
    margin: 0 auto
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    font-size: 1.05em;
    max-height: 100vh;
    box-sizing: border-box
}

.nitco-logo {
    position: fixed;
    top: 5%;
    left: 5%;
    width: 350px;
    height: auto;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    width: 100%
}

.card {
    flex: 1 1 calc(33% - 20px);
    min-width: 200px;
    max-width: 300px;
    background: #eaeaea;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #333;
    opacity: .85;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

.card:hover {
    transform: translateY(-5px);
    opacity: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15)
}

.card h3 {
    color: #004b8d
}

.card p {
    color: #555
}

.btn,
.settings-btn,
.btn-primary {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    background: #e31937;
    color: #fff
}

.btn:hover,
.settings-btn:hover,
.btn-primary:hover {
    background: #c0102a
}

.btn-secondary {
    background: #004b8d;
    color: #fff
}

.btn-secondary:hover {
    background: #003366
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    font-size: 1em;
    box-sizing: border-box
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #004b8d;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 75, 141, 0.2)
}

.settings-header {
    color: #fff;
    background-color: #C61424;    
    margin: 0;
    padding: 6px 10px 3px 10px;
}

.settings-header h1 {
    font-size: 1.8em;
    margin: 40px 0px 0px 0px;
}

.settings-header p {
    color: #ccc;
    font-size: .8em;
    width: 100%;
    text-align: right;
    padding: 0;
}

.settings-header img {
    height: 50px;
    margin: 25px 30px 0px 20px;
    float: left
}

.settings-footer,
.login-footer {
    color: #666
}

@media (max-width: 768px) {
    .login-window {
        padding: 20px
    }

    .card {
        flex: 1 1 100%;
        max-width: 100%
    }
}

.settings-panel {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box
}

.settings-actions {
    display: flex;
    justify-content: flex-start;
    padding:0px;
    gap: 15px;
    flex-wrap: wrap;
    margin:0px 0px 0px 5%;
}

.settings-actions .settings-btn {
    padding: 10px 18px;
    min-width: 120px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    font-size: 0.95em;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05)
}

.settings-actions .settings-btn.active {
    background: linear-gradient(90deg, #c61d23 0%, #ef4b24 100%);
    color: #fff;
    border: 1px solid #e31937;
    border-bottom: none;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(1px)
}

.settings-actions .settings-btn:not(.active):hover {
    background: #eee
}

@media (max-width: 768px) {
    .settings-actions {
        flex-direction: column;
        border-bottom: none;
        padding-left: 0
    }

    .settings-actions .settings-btn {
        width: 100%;
        border-radius: 8px;
    }

    .settings-actions .settings-btn.active {
        transform: none
    }
}

.settings-form {
    display: none;
    background-color: #eaeaea;
    border: none;
    border-radius: 25px 25px 0 25px;
    padding: 25px 30px;
    margin: 0 20px;
    width: auto;
    box-sizing: border-box;
    transition: all 0.4s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.settings-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333
}

.settings-form input[type="text"] {
    min-width:50%;
}
.settings-form input[type="text"],
.settings-form input[type="password"],
.settings-form input[type="email"],
.settings-form input[type="number"],
.settings-form textarea,
.settings-form select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

/* Select-specific styles */
.settings-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

/* Hover state for all form elements */
.settings-form input[type="text"]:hover,
.settings-form input[type="password"]:hover,
.settings-form input[type="email"]:hover,
.settings-form input[type="number"]:hover,
.settings-form textarea:hover,
.settings-form select:hover {
    border-color: #cbd5e0;
    background-color: #f8fafc;
}

/* Focus state for all form elements */
.settings-form input:focus,
.settings-form textarea:focus,
.settings-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

/* Disabled state */
.settings-form select:disabled {
    background-color: #f7fafc;
    border-color: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Error state */
.settings-form select.error {
    border-color: #e53e3e;
    background-color: #fef5f5;
}

.settings-form select.error:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Success state */
.settings-form select.success {
    border-color: #38a169;
    background-color: #f0fff4;
}

.settings-form input:focus,
.settings-form textarea:focus {
    outline: none;
    border-color: #e31937;
    box-shadow: 0 0 8px rgba(227, 25, 55, 0.2)
}

.settings-form textarea {
    min-height: 200px
}

.settings-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 39px;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
    background-color: #3a2627;
    background-image: linear-gradient(90deg, #c61d23 0%, #ef4b24 100%);
    background-size: 200% 100%;
    background-position: left;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.2s ease
}

.settings-btn:hover {
    background-position: center;
    transform: scale(1.02)
}

.settings-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease
}

.settings-form.show {
    display: block;
    opacity: 1;
    max-height: 2000px;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in
}

.settings-form p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
    margin-top: 10px
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .settings-form select {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    }

    .settings-form select:hover {
        background-color: #4a5568;
        border-color: #718096;
    }

    .settings-form select:focus {
        border-color: #63b3ed;
        box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
    }
}

.tips-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 30, 30, 0.9);
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    margin: 20px;
    border: 1px solid rgba(227, 25, 55, 0.3)
}

.tips-toggle:hover {
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2)
}

.tips-toggle h2 {
    color: #fff;
    font-weight: 600;
    font-size: 1.2em;
    margin: 0
}

.toggle-icon {
    display: inline-block;
    fill: #fff;
    color: #fff;
    transition: transform 0.3s ease;
    margin-left: 10px;
    font-size: 1.2em
}

.tips-toggle.active .toggle-icon {
    transform: rotate(180deg)
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    margin: 20px
}

.tips-content.expanded {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in
}

.tip-card {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(227, 25, 55, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.tip-icon {
    font-size: 2em;
    display: block;
    width: 100%;
    text-align: center
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(227, 25, 55, 0.2)
}

.tip-card i {
    font-size: 28px;
    color: #e31937;
    margin-bottom: 12px
}

.tip-card h3 {
    color: #e31937;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.2em
}

.tip-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-size: 0.95em;
    margin: 0 0 10px 0
}

.tip-card li {
    margin: 1px;
    color: #fff;
    padding: 2px
}

@media (max-width: 768px) {
    .tips-content {
        grid-template-columns: 1fr
    }
}

.back-to-home {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: #555;
    border: 1px solid #003366;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease
}

.back-to-home:hover {
    background: #fff;
    border-color: #c0102a;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2)
}

.back-to-home:hover svg {
    fill: #e31937
}

.back-to-home i,
.back-to-home svg {
    color: #fff;
    fill: #fff;
    font-size: 1.4em
}

.form-row-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px
}

.form-row-flex .form-group {
    flex: 1 1 45%;
    min-width: 200px
}

@media (max-width: 768px) {
    .form-row-flex .form-group {
        flex: 1 1 100%;
        min-width: unset
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 30px;
    transition: background-color 0.3s
}

.slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2)
}

.switch input:checked+.slider {
    background: linear-gradient(90deg, #c61d23 0%, #ef4b24 100%)
}

.switch input:checked+.slider::before {
    transform: translateX(22px)
}

.switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    clear: both;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 30px;
    transition: background-color 0.3s
}

.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2)
}

.switch input:checked+.slider {
    background: linear-gradient(90deg, #c61d23 0%, #ef4b24 100%)
}

.switch input:checked+.slider::before {
    transform: translateX(22px)
}

.switch-labels {
    position: relative;
    min-width: 180px
}

.switch-text {
    margin: 0;
    font-size: 0.95em;
    color: #555;
    position: static;
    transition: opacity 0.3s ease
}

.switch-text.off {
    display: block
}

.switch-text.on {
    display: none;
}

.switch-wrapper input:checked~.switch-labels .on {
    opacity: 1;
    position: static
}

.switch-wrapper input:checked~.switch-labels .off {
    opacity: 0;
    position: absolute
}

.user-list {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

.user-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff8f1, #fff3e9);
    border: 1px solid #ffd8b8;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(239, 108, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden
}

.user-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 108, 0, 0.1), transparent);
    transition: left 0.7s ease
}

.user-list-item:hover::before {
    left: 100%
}

.user-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 108, 0, 0.15);
    border-color: #ffb775;
    background: linear-gradient(to right, #fff3e5, #ffedd8)
}

.user-list-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 108, 0, 0.1);
    background: linear-gradient(to right, #ffebd6, #ffe2c4)
}

.user-item-main {
    flex: 1;
    display: flex;
    flex-direction: column
}

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e36c00;
    margin-bottom: 4px
}

.user-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px
}

.user-uid,
.user-email {
    font-size: 0.9rem;
    color: #8a5a2d;
    display: flex;
    align-items: center
}

.user-uid::before {
    content: '👤';
    margin-right: 6px;
    font-size: 0.8rem;
    color: #e36c00
}

.user-email::before {
    content: '✉️';
    margin-right: 6px;
    font-size: 0.8rem;
    color: #e36c00
}

.user-item-arrow {
    color: #e36c00;
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 15px;
    transition: transform 0.3s ease, color 0.3s ease
}

.user-list-item:hover .user-item-arrow {
    transform: translateX(4px);
    color: #ef4b24
}

.user-list-item:focus {
    outline: 2px solid #e36c00;
    outline-offset: 2px
}

.user-list-item.loading {
    pointer-events: none;
    opacity: 0.7
}

.user-list-item.loading .user-item-arrow {
    animation: pulse 1.5s infinite;
    color: #ef4b24
}

@keyframes pulse {
    0% {
        opacity: 1
    }

    50% {
        opacity: 0.5
    }

    100% {
        opacity: 1
    }
}

.user-list-item.selected {
    background: linear-gradient(to right, #ffedd8, #ffe6c9);
    border-color: #e36c00;
    box-shadow: 0 2px 8px rgba(227, 108, 0, 0.2)
}

.user-list-item.selected .user-name {
    color: #ef4b24
}

@media (max-width: 600px) {
    .user-list-item {
        padding: 14px 16px
    }

    .user-details {
        flex-direction: column;
        gap: 4px
    }

    .user-item-arrow {
        font-size: 1.3rem
    }
}

.user-edit-form {
    width: 100%;
    border: 1px solid #ccc;
    background: #eee;
    border-radius: 20px;
    padding: 10px
}

#userSearchForm {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 20px 0;
    padding: 0
}

#userSearchForm input[type="text"] {
    flex: 1;
    padding: 12px 18px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 25px 25px 0 25px;
    color: #333;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease
}

#userSearchForm input[type="text"]:focus {
    outline: none;
    border-color: #e36c00;
    box-shadow: 0 0 8px rgba(227, 108, 0, 0.3)
}

#userSearchForm button[type="submit"] {
    padding: 12px 24px;
    background-color: #3a2627;
    background-image: linear-gradient(90deg, #c61d23 0%, #ef4b24 80%);
    background-size: 200% 100%;
    background-position: left;
    border: none;
    border-radius: 39px;
    box-shadow: 0 3px 8px rgba(198, 29, 35, 0.3);
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap
}

#userSearchForm button[type="submit"]:hover {
    background-position: right;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(198, 29, 35, 0.4)
}

#userSearchForm button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(198, 29, 35, 0.3)
}

@media (max-width: 600px) {
    #userSearchForm {
        flex-direction: column;
        align-items: stretch
    }

    #userSearchForm button[type="submit"] {
        align-self: flex-end;
        width: auto;
        min-width: 120px
    }
}

#userEditForm button[type="normal"] {
    padding: 12px 24px;
    background-color: #3a2627;
    background-image: linear-gradient(90deg, #c61d23 0%, #ef4b24 80%);
    background-size: 200% 100%;
    background-position: left;
    border: none;
    border-radius: 39px;
    box-shadow: 0 3px 8px rgba(198, 29, 35, 0.3);
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap
}

#userEditForm button[type="normal"]:hover {
    background-position: right;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(198, 29, 35, 0.4)
}

#userEditForm button[type="normal"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(198, 29, 35, 0.3)
}

@media (max-width: 600px) {
    #userEditForm {
        flex-direction: column;
        align-items: stretch
    }

    #userEditForm button[type="normal"] {
        align-self: flex-end;
        width: auto;
        min-width: 120px
    }
}

#userEditForm h4 {
    background-color: #c61d23;
    color: #fff;
    border-bottom: 1px dashed #003366
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c61d23 0%, #ef4b24 100%);
}

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

.card h2 {
    color: #004b8d;
    font-size: 1.4rem;
    margin: 15px 0 10px;
    font-weight: 700;
}

.card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.card-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .card-emoji {
    transform: scale(1.1);
}

/* Specific emoji styles for each card type */
.card[data-uri="/profile"] .card-emoji::after {
    content: "👤";
}

.card[data-uri="/email"] .card-emoji::after {
    content: "📧";
}

.card[data-uri="/website"] .card-emoji::after {
    content: "🌐";
}

.card[data-uri="/storage"] .card-emoji::after {
    content: "💾";
}

.card[data-uri="/login/logout"] .card-emoji::after {
    content: "🚪";
}

.card[data-uri="/useradmin"] .card-emoji::after {
    content: "👑";
}

.card[data-uri="/wireless"] .card-emoji::after {
    content: "🛜";
}

.card[data-uri="/dhcp"] .card-emoji::after {
    content: "🦾";
}

.card[data-uri="/ipban"] .card-emoji::after {
    content: "🚷";
}

.card[data-uri="/notes"] .card-emoji::after {
    content: "📝";
}

.card[data-uri="/log"] .card-emoji::after {
    content: "📊";
}

.card[data-uri="/advertising"] .card-emoji::after {
    content: "📰";
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .card {
        padding: 20px;
        min-height: 160px;
    }

    .card-emoji {
        font-size: 2.5rem;
    }

    .card h2 {
        font-size: 1.2rem;
    }
}

/* Animation for card click */
.card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* Clean Modern Grid Table - Brand Color Theme */
.grid-table {
    width: 100%;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1px;
    background: linear-gradient(90deg, #c61d23 0%, #ef4b24 80%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grid-header>div {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.grid-header>div:last-child {
    border-right: none;
}

.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f0f0;
    position: relative;
}

.grid-row:last-child {
    border-bottom: none;
}

.grid-row:hover {
    background: #fef8f8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198, 29, 35, 0.1);
}

.grid-row.striped {
    background: #fdf6f6;
}

.grid-row>div {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #3a2627;
    line-height: 1.5;
}

.grid-row>div.password {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    color: #c61d23;
    font-weight: 600;
    background: #fef0f0;
    border-radius: 6px;
    margin: 0.25rem 0;
    border: 1px solid #ffe0e0;
}

/* Enhanced hover effects with brand colors */
.grid-row:hover>div:first-child {
    border-left: 4px solid #c61d23;
    padding-left: calc(1.5rem - 4px);
}

/* Responsive Design */
@media (max-width: 1024px) {

    .grid-header,
    .grid-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .grid-header>div,
    .grid-row>div {
        padding: 1rem 1.25rem;
    }

    .grid-row:hover>div:first-child {
        border-left: none;
        padding-left: 1.25rem;
    }
}

@media (max-width: 768px) {

    .grid-header,
    .grid-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }

    .grid-header {
        display: none;
    }

    .grid-row {
        background: white;
        border: 1px solid #f0e0e0;
        border-radius: 8px;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 4px rgba(198, 29, 35, 0.05);
    }

    .grid-row:hover {
        border-color: #c61d23;
        box-shadow: 0 4px 12px rgba(198, 29, 35, 0.15);
    }

    .grid-row>div {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f8f0f0;
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 1rem;
    }

    .grid-row>div:last-child {
        border-bottom: none;
    }

    .grid-row>div::before {
        content: attr(data-label);
        font-weight: 600;
        color: #c61d23;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .grid-row>div.password {
        background: #fef0f0;
        padding: 0.75rem;
        margin: 0.25rem 0;
    }
}

@media (max-width: 480px) {
    .grid-table {
        margin: 1rem 0;
        border-radius: 8px;
        border: 1px solid #f0e0e0;
    }

    .grid-row>div {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .grid-row>div::before {
        font-size: 0.8rem;
        color: #ef4b24;
    }
}

/* Optional: Add some accent elements */
.grid-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c61d23 0%, #ef4b24 80%);
    border-radius: 12px 12px 0 0;
}

/* Loading state animation */
.grid-row.loading>div {
    background: linear-gradient(90deg, #f8f0f0 25%, #fdf6f6 50%, #f8f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: transparent;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Add to your existing CSS */
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    height: 40px; /* Match input field height */
}

.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.edit-form-section .form-row-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.edit-form-section .form-row-flex .form-group {
    flex: 1;
    min-width: 200px;
}

/* Ensure proper form styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}