/**
 * Enhanced User Components Styles
 * This file contains styles for tables, forms, and other UI components
 * with a clean, white background design
 */

/* Header Styles */
.header {
  background-color: #ffffff !important;
}

.header-main {
  background-color: #ffffff !important;
}

.navbar-light .navbar-nav .nav-link {
  color: #0a0a0a !important;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: block;
}

.form-label.required::after {
    content: '*';
    color: #e60000;
    margin-left: 4px;
}

.form--control {
    height: 50px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 10px 15px;
    color: #1a1a1a;
    background-color: #ffffff;
    width: 100%;
    transition: all 0.3s ease;
}

.form--control:focus {
    border-color: #e60000;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.form--control::placeholder {
    color: #999999;
}

textarea.form--control {
    height: 120px;
    resize: none;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form--control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #f7f7f7;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    color: #777777;
}

.input-group > .input-group-text:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .form--control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .form--control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .input-group-text:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Custom Select */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    height: 50px;
    line-height: 50px;
    background-color: #ffffff;
    cursor: pointer;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
}

.custom-select__trigger:hover {
    border-color: #cccccc;
}

.custom-select__trigger.active {
    border-color: #e60000;
}

.custom-select__trigger::after {
    content: '';
    position: relative;
    width: 10px;
    height: 10px;
    border-right: 2px solid #777777;
    border-bottom: 2px solid #777777;
    transform: rotate(45deg);
    margin-left: 10px;
    transition: all 0.3s ease;
}

.custom-select__trigger.active::after {
    transform: rotate(-135deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #e9e9e9;
    border-top: 0;
    background-color: #ffffff;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.custom-option {
    position: relative;
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-option:hover {
    background-color: #f7f7f7;
}

.custom-option.selected {
    color: #e60000;
    background-color: rgba(230, 0, 0, 0.05);
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload__label {
    display: block;
    padding: 12px 20px;
    background-color: #f7f7f7;
    border: 1px dashed #cccccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload__label:hover {
    background-color: #f0f0f0;
    border-color: #e60000;
}

.file-upload__input {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload__info {
    margin-top: 10px;
    font-size: 12px;
    color: #777777;
}

.file-preview {
    margin-top: 15px;
    padding: 10px;
    background-color: #f7f7f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.file-preview__icon {
    font-size: 24px;
    color: #e60000;
    margin-right: 10px;
}

.file-preview__info {
    flex: 1;
}

.file-preview__name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.file-preview__size {
    font-size: 12px;
    color: #777777;
}

.file-preview__remove {
    color: #e60000;
    font-size: 18px;
    cursor: pointer;
}

/* Checkbox & Radio */
.custom-checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    display: inline-block;
    color: #1a1a1a;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #e60000;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #e60000;
    border-color: #e60000;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-radio {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    display: inline-block;
    color: #1a1a1a;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-radio:hover input ~ .radio-mark {
    border-color: #e60000;
}

.custom-radio input:checked ~ .radio-mark {
    border-color: #e60000;
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-radio input:checked ~ .radio-mark:after {
    display: block;
}

.custom-radio .radio-mark:after {
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e60000;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:focus, .btn:hover {
    text-decoration: none;
}

.btn--base, .btn--primary {
    color: #ffffff;
    background-color: #e60000;
    border-color: #e60000;
}

.btn--base:hover, .btn--primary:hover {
    background-color: #cc0000;
    border-color: #cc0000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.2);
}

.btn--outline-base, .btn--outline-primary {
    color: #e60000;
    background-color: transparent;
    border-color: #e60000;
}

.btn--outline-base:hover, .btn--outline-primary:hover {
    color: #ffffff;
    background-color: #e60000;
    border-color: #e60000;
}

.btn--secondary {
    color: #ffffff;
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn--secondary:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
}

.btn--outline-secondary {
    color: #1a1a1a;
    background-color: transparent;
    border-color: #1a1a1a;
}

.btn--outline-secondary:hover {
    color: #ffffff;
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn--success {
    color: #ffffff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn--success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: #ffffff;
}

.btn--danger {
    color: #ffffff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn--danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: #ffffff;
}

.btn--info {
    color: #ffffff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn--info:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: #ffffff;
}

.btn--warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn--warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.btn--light {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn--light:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
    color: #212529;
}

.btn--dark {
    color: #ffffff;
    background-color: #343a40;
    border-color: #343a40;
}

.btn--dark:hover {
    background-color: #23272b;
    border-color: #1d2124;
    color: #ffffff;
}

.btn--block {
    display: block;
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge--primary {
    color: #ffffff;
    background-color: #e60000;
}

.badge--secondary {
    color: #ffffff;
    background-color: #1a1a1a;
}

.badge--success {
    color: #ffffff;
    background-color: #28a745;
}

.badge--danger {
    color: #ffffff;
    background-color: #dc3545;
}

.badge--warning {
    color: #212529;
    background-color: #ffc107;
}

.badge--info {
    color: #ffffff;
    background-color: #17a2b8;
}

/* Pagination */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 1;
    color: #ffffff;
    background-color: #e60000;
    border-color: #e60000;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #ffffff;
    border-color: #dee2e6;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #e60000;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

.page-link:hover {
    color: #cc0000;
    text-decoration: none;
    background-color: #f7f7f7;
    border-color: #dee2e6;
}

/* Alerts */
.alert {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert--primary {
    color: #1a1a1a;
    background-color: rgba(230, 0, 0, 0.1);
    border-color: rgba(230, 0, 0, 0.2);
}

.alert--secondary {
    color: #1a1a1a;
    background-color: rgba(26, 26, 26, 0.1);
    border-color: rgba(26, 26, 26, 0.2);
}

.alert--success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert--danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert--warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert--info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Tabs */
.custom-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9e9e9;
}

.custom-tabs__item {
    margin-right: 5px;
    margin-bottom: -1px;
}

.custom-tabs__link {
    display: block;
    padding: 10px 20px;
    font-weight: 600;
    color: #777777;
    background-color: transparent;
    border: 1px solid transparent;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    transition: all 0.3s ease;
}

.custom-tabs__link:hover {
    color: #e60000;
    border-color: #e9e9e9 #e9e9e9 #ffffff;
}

.custom-tabs__link.active {
    color: #e60000;
    background-color: #ffffff;
    border-color: #e9e9e9 #e9e9e9 #ffffff;
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Mobile Table */
@media (max-width: 767px) {
    .mobile-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .mobile-table table {
        width: 100%;
        min-width: 500px;
    }
    
    .mobile-table--responsive {
        border: 0;
    }
    
    .mobile-table--responsive thead {
        display: none;
    }
    
    .mobile-table--responsive tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e9e9e9;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .mobile-table--responsive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #e9e9e9;
    }
    
    .mobile-table--responsive td:last-child {
        border-bottom: 0;
    }
    
    .mobile-table--responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1a1a1a;
        text-align: left;
        padding-right: 10px;
    }
} 

/* Profile Settings Page Enhancements */
.profile-form .input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.profile-form .input-group-lg {
    height: auto;
}

.profile-form .input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.25rem 0 0 0.25rem;
    border-right: none;
}

.profile-form .form--control {
    display: block;
    width: 100%;
    height: calc(1.5em + 1.5rem);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0 0.25rem 0.25rem 0;
    border-left: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.profile-form .form--control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.profile-form .form--control:disabled,
.profile-form .form--control[readonly] {
    background-color: #f8f9fa;
    opacity: 1;
}

.profile-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-section__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #0a0a0a;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-photo-upload {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-actions {
    flex: 1;
}

.profile-image-input {
    display: none;
}

/* Fix for form labels */
.profile-form .form-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0a0a0a;
    display: block;
}

/* Fix for form group spacing */
.profile-form .form-group {
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .profile-photo-upload {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    .profile-form .form-label {
        font-size: 0.95rem;
    }
} 