/* Admin Forms CSS - Common styling for admin forms */

/* Change Password Form Styles */
.change-password-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    align-items: start;
}

.form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group label i {
    margin-right: 8px;
    color: #4CAF50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 48px;
}

.form-group input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.form-help {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    min-height: 20px;
    line-height: 1.4;
}

.password-strength {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.strength-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-fill.weak { background: #f44336; width: 25%; }
.strength-fill.fair { background: #ff9800; width: 50%; }
.strength-fill.good { background: #2196f3; width: 75%; }
.strength-fill.strong { background: #4CAF50; width: 100%; }

.strength-text {
    font-size: 14px;
    font-weight: 600;
}

.strength-text.weak { color: #f44336; }
.strength-text.fair { color: #ff9800; }
.strength-text.good { color: #2196f3; }
.strength-text.strong { color: #4CAF50; }

.password-requirements {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.password-requirements h4 {
    margin: 0 0 10px 0;
    color: #333;
}

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

.requirements-list li {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
}

.requirements-list li i {
    margin-right: 10px;
    font-size: 12px;
}

.requirements-list li.valid i {
    color: #4CAF50;
}

.requirements-list li.invalid i {
    color: #ccc;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-update {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-update:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-update:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.security-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tip-item i {
    font-size: 20px;
    margin-top: 2px;
}

.tip-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.tip-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.text-success {
    color: #4CAF50 !important;
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    width: 100%;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
    max-width: 100%;
    word-wrap: break-word;
}

.notification-success {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%);
}

.notification-error {
    border-left-color: #f44336;
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
}

.notification-warning {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.notification-info {
    border-left-color: #2196F3;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    margin-top: 2px;
}

.notification-success .notification-icon {
    background: #4CAF50;
}

.notification-error .notification-icon {
    background: #f44336;
}

.notification-warning .notification-icon {
    background: #ff9800;
}

.notification-info .notification-icon {
    background: #2196F3;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    color: #333;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    animation: progressBar 5s linear;
}

.notification-success .notification-progress {
    background: #4CAF50;
}

.notification-error .notification-progress {
    background: #f44336;
}

.notification-warning .notification-progress {
    background: #ff9800;
}

.notification-info .notification-progress {
    background: #2196F3;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.notification.slide-out {
    animation: slideOutRight 0.3s ease forwards;
}

/* Toast Notifications (Legacy Support) */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 1000;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-error {
    border-left: 4px solid #f44336;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    font-size: 18px;
}

.toast-success .toast-content i {
    color: #4CAF50;
}

.toast-error .toast-content i {
    color: #f44336;
}

.toast-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .security-tips {
        grid-template-columns: 1fr;
    }
    
    .toast {
        min-width: 280px;
        right: 10px;
        left: 10px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .form-group:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .form-group input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-secondary,
    .btn-update {
        width: 100%;
        justify-content: center;
    }
    
    .form-actions {
        gap: 10px;
    }
}

/* Service Boxes Equal Height and No Gaps */
.service-two .row {
    display: flex;
    margin: 0;
    padding: 0;
}

.service-two .row .column {
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
}

.service-two .service-block_three {
    margin-bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.service-two .service-block_three .inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
}

.service-two .service-block_three .text {
    flex-grow: 1;
    margin-bottom: 0;
}

/* Remove Bootstrap column gaps */
.service-two .row .column:not(:last-child) {
    margin-right: 0;
}

.service-two .row .column:not(:first-child) {
    margin-left: 0;
}

/* Ensure all boxes have same height */
.service-two .row {
    align-items: stretch;
}

/* Mobile responsive adjustments */
@media (max-width: 1199.98px) {
    .service-two .row {
        flex-wrap: wrap;
    }
    
    .service-two .row .column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767.98px) {
    .service-two .row .column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .service-two .service-block_three .inner {
        padding: 25px 20px;
    }
}

/* Full Screen About Section with Border and Scrollable Content */
.about-two-fullscreen {
    
    padding: 40px 0;
    background-color: #f5f5f5;
    
    box-sizing: border-box;
}

.about-container {
    max-width: 100%;
    margin: 0;
    
}

.about-row {
    display: flex;
    height: 70vh;
    min-height: 500px;
    margin: 0;
    padding: 0;
}

.about-image-column {
    flex: 0 0 45%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content-column {
    flex: 0 0 55%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.content-scrollable {
    height: 100%;
    overflow-y: auto;
    padding: 20px 30px;
    background-color: white;
    border-left: 2px solid #e0e0e0;
    box-sizing: border-box;
}

.content-scrollable::-webkit-scrollbar {
    width: 8px;
}

.content-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.content-scrollable::-webkit-scrollbar-thumb {
    background: #1c4d84;
    border-radius: 4px;
}

.content-scrollable::-webkit-scrollbar-thumb:hover {
    background: #0f3a6b;
}

.about-image-column .image-box {
    width: 100%;
    height: 100%;
    
    overflow: hidden;
    position: relative;
}

.about-image-column .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image-column .image-box::before {
   
}

/* Mobile responsive adjustments for about section */
@media (max-width: 1199.98px) {
    .about-row {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .about-image-column {
        flex: 0 0 auto;
        height: 300px;
        margin-bottom: 20px;
    }
    
    .about-content-column {
        flex: 0 0 auto;
    }
    
    .content-scrollable {
        height: 400px;
        border-left: none;
        border-top: 2px solid #e0e0e0;
    }
}

@media (max-width: 767.98px) {
    .about-two-fullscreen {
        padding: 20px 0;
        border-width: 2px;
    }
    
    .about-container {
        padding: 0 15px;
    }
    
    .about-image-column {
        height: 250px;
    }
    
    .content-scrollable {
        height: auto;
        overflow-y: visible;
        padding: 15px 20px;
    }
    
    /* Hide scrollbar on mobile */
    .content-scrollable::-webkit-scrollbar {
        display: none;
    }
    
    .content-scrollable {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
