/* ABAM Components Stylesheet */

/* Sidebar Styles */
.sidebar {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, #b89c61 0%, #a58447 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-type {
    font-size: 0.9rem;
    opacity: 0.9;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #f8fafc;
    color: #b89c61;
    border-right-color: #b89c61;
}

.sidebar-menu a i {
    width: 20px;
    margin-left: 1rem;
    text-align: center;
}

@media (max-width: 992px) {
    .sidebar {
        margin-bottom: 1rem;
    }
}

/* Buttons */
.btn-main {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(184, 156, 97, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    cursor: pointer;
}

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

.btn-nav {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    min-width: 120px;
}

.btn-prev {
    background: var(--border-color);
    color: var(--secondary-color);
}

.btn-prev:hover:not(:disabled) {
    background: #dee2e6;
    transform: translateY(-2px);
}

.btn-next,
.btn-finish {
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-dark)
    );
    color: white;
}

.btn-next:hover:not(:disabled),
.btn-finish:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 156, 97, 0.4);
}

.btn-nav:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cards */
.qualification-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(184, 156, 97, 0.1);
}

.qualification-card h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.qualification-subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.step-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(184, 156, 97, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.step-card:hover .step-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(184, 156, 97, 0.4);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 71, 42, 0.5);
}

/* Toggle Buttons */
.qualification-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.toggle-buttons {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    color: #666;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(184, 156, 97, 0.3);
}

/* Info Grids */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-item {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-number {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
}

/* Step Icons */
.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #d4c397);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(184, 156, 97, 0.3);
    transition: all 0.3s ease;
}

.step-icon i {
    font-size: 1.5rem;
    color: white;
    position: absolute;
    top: 12px;
    opacity: 0.8;
}

.step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary-color), #1a472a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(26, 71, 42, 0.4);
    border: 3px solid white;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.step-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.step-duration {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Steps Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Section Titles */
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary-color);
}

/* Requirements Lists */
.requirements-section,
.benefits-section,
.sectors-section {
    margin-top: 2rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(184, 156, 97, 0.05);
    border-radius: var(--border-radius-lg);
}

.requirement-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
}

.benefits-list i {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Sectors Grid */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.sector-item {
    background: rgba(184, 156, 97, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: transform 0.3s ease;
}

.sector-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.sector-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Qualification Content */
.qualification-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.qualification-content.active {
    display: block;
}

/* Alert/Notification Styling */
.alert {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.alert-success {
    background: linear-gradient(45deg, var(--success-color), #20c997);
    color: white;
}

.alert-danger {
    background: linear-gradient(45deg, var(--danger-color), #e74c3c);
    color: white;
}

/* ABAM Action Buttons (from abam.sa website) */
.btn-abam {
    background: linear-gradient(135deg, #005a5a, #003b3b);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 148px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 90, 90, 0.2);
}

.btn-abam:hover {
    background: linear-gradient(135deg, #007f7f, #005a5a);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 90, 90, 0.3);
    color: white;
}

.btn-abam:active {
    transform: scale(0.98);
}

.btn-abam:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 90, 90, 0.3);
}

/* ABAM Gold Button Alternative */
.btn-abam-gold {
    background: linear-gradient(135deg, #b79c62, #9d8347);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(183, 156, 98, 0.2);
}

.btn-abam-gold:hover {
    background: linear-gradient(135deg, #c9a96b, #b79c62);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(183, 156, 98, 0.3);
    color: white;
}

.btn-abam-gold:active {
    transform: scale(0.98);
}

.btn-abam-gold:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(183, 156, 98, 0.3);
}

/* ABAM Outline Button */
.btn-abam-outline {
    background: transparent;
    color: #005a5a;
    border: 2px solid #005a5a;
    padding: 10px 26px;
    border-radius: 148px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-abam-outline:hover {
    background: linear-gradient(135deg, #005a5a, #003b3b);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 90, 90, 0.3);
}

.btn-abam-outline:active {
    transform: scale(0.98);
}

.btn-abam-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 90, 90, 0.3);
}

/* Navbar Components */
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

/* User dropdown styling */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Auth Forms Styling */
.auth-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

.auth-card .card-header {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
}

.auth-form .input-group-text {
    background: var(--primary-color);
    color: white;
    border: none;
}

.auth-form .form-control {
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 156, 97, 0.25);
    border-color: var(--primary-color);
}

.auth-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-form .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 156, 97, 0.25);
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Login/Register buttons styling */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Navbar user menu styling */
.navbar .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 200px;
}

.navbar .dropdown-item {
    padding: 0.5rem 1rem;
}

.navbar .dropdown-item:hover {
    background-color: var(--light-bg);
}

.navbar .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

.navbar .dropdown-divider {
    margin: 0.5rem 0;
}

/* Full-screen Page Title Styles */
.page-title-fullscreen {
    background: linear-gradient(135deg, #2dd4bf, #0891b2);
    /* background: linear-gradient(135deg, #b89c61 0%, #a58447 100%); */
    color: white;
    padding: 4rem 0 3rem 0;
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
}

.page-title-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-title-main {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle-main {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

.page-title-main i {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments for full-screen title */
@media (max-width: 768px) {
    .page-title-fullscreen {
        padding: 3rem 0 2rem 0;
    }

    .page-title-main {
        font-size: 2.2rem;
    }

    .page-subtitle-main {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .page-title-main {
        font-size: 1.8rem;
    }

    .page-subtitle-main {
        font-size: 1rem;
    }
}

/* Profile Page Styles */
.profile-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-header {
    background: linear-gradient(135deg, #2dd4bf, #0891b2);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-email {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.profile-role {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
}

.profile-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

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

.profile-card .card-body {
    padding: 1.5rem;
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.info-label {
    font-weight: 500;
    color: #64748b;
}

.info-value {
    color: #1a202c;
    font-weight: 500;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #b89c61;
    color: white;
    border-color: #a58447;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 156, 97, 0.3);
}

.action-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.badge-success {
    background-color: #10b981;
}

.badge-danger {
    background-color: #ef4444;
}

.badge-primary {
    background-color: #3b82f6;
}

.badge-warning {
    background-color: #f59e0b;
}

/* Profile Edit Page Styles */
.profile-edit-container {
    max-width: 100%;
    width: 100%;
}

.profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

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

.profile-card .card-body {
    padding: 2rem;
}

.card-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #6b7280;
}

.form-control {
    border-color: #d1d5db;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: #b89c61;
    box-shadow: 0 0 0 0.2rem rgba(184, 156, 97, 0.25);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #b89c61;
    border-color: #b89c61;
}

.btn-primary:hover {
    background: #a58447;
    border-color: #a58447;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 156, 97, 0.3);
}

.btn-secondary {
    background: #6b7280;
    border-color: #6b7280;
}

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

.btn-outline-danger {
    color: #ef4444;
    border-color: #ef4444;
}

.btn-outline-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.border-danger {
    border-color: #ef4444 !important;
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert {
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design for Profile Pages */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .profile-card .card-body {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
