/* DigiSkills Profiles Plugin Styles */
a {
    text-decoration: none !important;
}

/* Password Update Page Styles */
.digiskills-password-update {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 20px 0;
}

.password-update-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1.password-update-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.password-update-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.password-update-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.password-update-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    margin-bottom: 30px;
}

.password-update-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    padding: 20px 30px;
}

.password-update-card .card-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
    font-size: 1.3rem;
}

.password-update-card .card-body {
    padding: 30px;
}

.password-update-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 1rem;
}

.password-update-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.password-update-form .form-control:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
    background: white;
}

.password-update-form .input-group .btn {
    border: 2px solid #e9ecef;
    border-left: none;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

.password-update-form .input-group .btn:hover {
    background: #e9ecef;
    color: #495057;
}

.password-update-form .form-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 8px;
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.password-requirements li {
    padding: 5px 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.password-requirements li i {
    width: 16px;
    text-align: center;
}

.password-requirements li.text-success {
    color: #28a745 !important;
}

.password-requirements li.text-muted {
    color: #6c757d !important;
}

.password-update-tips .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.password-update-tips .card-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-bottom: 2px solid #90caf9;
    border-radius: 15px 15px 0 0 !important;
}

.password-update-tips .card-header h6 {
    margin: 0;
    color: #1976d2;
    font-weight: 600;
    font-size: 1.1rem;
}

.password-update-tips .list-unstyled li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.password-update-tips .list-unstyled li:last-child {
    border-bottom: none;
}

.password-update-tips .list-unstyled li i {
    color: #28a745;
    font-size: 0.9rem;
}

.entry-header.ast-no-thumbnail {
    display: none !important;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 20px;
    margin-bottom: 20px;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Button Styles */
.btn {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    border-color: #007cba;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
    border-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 124, 186, 0.3);
}

.btn-outline-warning {
    color: #856404;
    border-color: #ffc107;
    background: transparent;
}

.btn-outline-warning:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

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

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Loading Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .password-update-title {
        font-size: 2rem;
    }
    
    .password-update-subtitle {
        font-size: 1rem;
    }
    
    .password-update-card .card-body {
        padding: 20px;
    }
    
    .password-update-form .form-control {
        padding: 12px 15px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .password-update-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .password-update-title {
        font-size: 1.8rem;
    }
    
    .password-update-content {
        padding: 0 15px;
    }
    
    .password-update-card .card-body {
        padding: 15px;
    }
    
    .d-grid.gap-2.d-md-flex {
        flex-direction: column;
    }
    
    .d-grid.gap-2.d-md-flex .btn {
        margin-bottom: 10px;
    }
}


/* General Styles */
.digiskills-profiles {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Form Styles */
.digiskills-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.section-title {
    color: #0073aa;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 0.2rem rgba(0, 115, 170, 0.25);
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input:checked {
    background-color: #0073aa;
    border-color: #0073aa;
}

.btn-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.3);
}

/* Status Indicators */
.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-approved {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Admin Dashboard */
.digiskills-dashboard {
    margin-top: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: #0073aa;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.stat-card .button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s ease;
}

.stat-card .button:hover {
    background: #005a87;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .digiskills-form {
        padding: 15px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.file-upload input[type=file] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload:hover .file-upload-label {
    border-color: #0073aa;
    background: #e3f2fd;
}

/* Success/Error Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    transition: width 0.3s ease;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.ast-separate-container .ast-article-single {
    padding: 0 !important;
}

/* Dashboard Menu Items */
.menu-item-dashboard .nav-link,
.menu-item-logout .nav-link {
    color: #007cba !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-item-dashboard .nav-link:hover,
.menu-item-logout .nav-link:hover {
    color: #005a87 !important;
    background-color: rgba(0, 124, 186, 0.1);
    border-radius: 4px;
}

.menu-item-dashboard .nav-link i,
.menu-item-logout .nav-link i {
    font-size: 0.9em;
}

/* Active dashboard menu item */
.menu-item-dashboard .nav-link.active,
.menu-item-dashboard .nav-link:focus {
    color: #005a87 !important;
    background-color: rgba(0, 124, 186, 0.15);
}

/* Mobile menu styling */
@media (max-width: 768px) {
    .menu-item-dashboard,
    .menu-item-logout {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .menu-item-dashboard .nav-link,
    .menu-item-logout .nav-link {
        padding: 12px 15px;
        display: block;
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .digiskills-form {
        max-width: none;
        padding: 0;
    }
    
    .form-section {
        break-inside: avoid;
        border: 1px solid #000;
        background: white;
    }
    
    .btn-primary {
        display: none;
    }
    
    .menu-item-dashboard,
    .menu-item-logout {
        display: none;
    }
}
