/* Profil CSS - /assets/css/profil.css */

/* Main container */
.profil-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--white) 100%);
    padding: 2rem 0;
}

/* Profile layout */
.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Profile sidebar */
.profile-sidebar {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    border: 4px solid var(--light-orange);
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-large {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light-orange);
    background: var(--primary-orange);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.profile-avatar-large.profile-avatar-placeholder {
    background: linear-gradient(135deg, var(--primary-orange), var(--medium-orange));
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-orange);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    border: 2px solid var(--white);
    transition: all 0.3s;
}

.avatar-upload:hover {
    background: var(--dark-orange);
    transform: scale(1.1);
}

.profile-name {
    color: var(--dark-gray);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-verified {
    background: var(--light-orange);
    color: var(--darker-orange);
}

.status-pending {
    background: #fef3cd;
    color: #856404;
}

/* Profile stats */
.profile-stats {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.stat-value {
    color: var(--dark-gray);
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-value.highlight {
    color: var(--primary-orange);
}

/* Profile navigation */
.profile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav li {
    margin-bottom: 0.5rem;
}

.profile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--medium-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.profile-nav a:hover {
    background: var(--light-orange);
    color: var(--primary-orange);
}

.profile-nav a.active {
    background: var(--primary-orange);
    color: var(--white);
}

.profile-nav-icon {
    width: 20px;
    height: 20px;
}

/* Profile content area */
.profile-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.content-title {
    color: var(--dark-gray);
    font-size: 2rem;
    font-weight: 700;
}

.content-actions {
    display: flex;
    gap: 0.75rem;
}

/* Form styles */
.profile-form {
    display: grid;
    gap: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    color: var(--dark-gray);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.section-icon {
    margin-right: 0.5rem;
    color: var(--primary-orange);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input, .form-select, .form-textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(254, 107, 53, 0.1);
}

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

.form-help {
    color: var(--medium-gray);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Notification preferences */
.notification-preferences {
    display: grid;
    gap: 1rem;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.notification-info {
    flex: 1;
}

.notification-title {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.notification-toggle {
    position: relative;
    width: 50px;
    height: 25px;
    background: var(--medium-gray);
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-toggle.active {
    background: var(--primary-orange);
}

.notification-toggle::before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    background: var(--white);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.notification-toggle.active::before {
    transform: translateX(25px);
}

/* My trips/bookings tables */
.trips-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.trips-table th,
.trips-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.trips-table th {
    background: var(--light-gray);
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trips-table tr:hover {
    background: var(--light-orange);
}

.trip-route {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-arrow {
    color: var(--primary-orange);
}

.trip-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-planned {
    background: var(--light-orange);
    color: var(--darker-orange);
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.trip-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-view {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.btn-view:hover {
    background: var(--medium-gray);
    color: var(--white);
}

.btn-edit {
    background: var(--light-orange);
    color: var(--darker-orange);
}

.btn-edit:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-cancel {
    background: #f8d7da;
    color: #721c24;
}

.btn-cancel:hover {
    background: #dc3545;
    color: var(--white);
}

/* Vehicle management */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.vehicle-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    background: var(--white);
}

.vehicle-card:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow);
}

.vehicle-card.primary {
    border-color: var(--primary-orange);
    background: var(--light-orange);
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.vehicle-info h4 {
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.vehicle-model {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.vehicle-primary-badge {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.vehicle-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.vehicle-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.vehicle-icon {
    color: var(--primary-orange);
}

.vehicle-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Credit/wallet section */
.credit-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.credit-card {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.credit-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.credit-label {
    opacity: 0.9;
    font-size: 1rem;
}

.credit-history {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.history-header {
    background: var(--light-gray);
    padding: 1rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.history-item:last-child {
    border-bottom: none;
}

.history-description {
    color: var(--dark-gray);
    font-weight: 500;
}

.history-date {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.history-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.amount-positive {
    color: #10b981;
}

.amount-negative {
    color: #ef4444;
}

/* Security settings */
.security-section {
    display: grid;
    gap: 2rem;
}

.password-change {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.security-info h4 {
    color: var(--dark-gray);
    margin: 0 0 0.25rem 0;
}

.security-info p {
    color: var(--medium-gray);
    margin: 0;
    font-size: 0.9rem;
}

/* Action buttons */
.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--dark-orange);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-orange);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-orange);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--medium-gray);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.empty-description {
    margin-bottom: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-sidebar {
        position: static;
        order: 2;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .credit-overview {
        grid-template-columns: 1fr;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-details {
        grid-template-columns: 1fr;
    }
    
    .trips-table {
        font-size: 0.8rem;
    }
    
    .trips-table th,
    .trips-table td {
        padding: 0.5rem;
    }
    
    .trip-actions {
        flex-direction: column;
    }
}






















.status-verified {
    color: #10b981;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-pending {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-rejected {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.875rem;
}

.d-flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-secondary {
    color: #6b7280;
}

.text-primary {
    color: #fe6b35;
}

.text-sm {
    font-size: 0.875rem;
}