/* COI Request Button and Modal Styles */

/* COI Button in Header */
.btn-coi {
    background: linear-gradient(135deg, #0066cc, #003d7a);
    color: white;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    height: 38px;
}

.btn-coi:hover {
    background: linear-gradient(135deg, #003d7a, #002855);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    color: white;
}

.btn-coi i {
    font-size: 14px;
}

/* Fix nav-actions alignment */
.nav-container .nav-actions {
    display: flex;
    align-items: center;
    gap: 20px !important;
    margin-left: 40px !important;
}

.nav-actions .btn,
.nav-actions .btn-primary,
.nav-actions .btn-coi {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-size: 14px;
    line-height: 38px;
    white-space: nowrap;
}

/* Ensure proper vertical alignment of all header elements */
.navbar {
    display: flex;
    align-items: center;
    min-height: 70px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-container .nav-brand {
    flex: 1;
}

.nav-container .nav-menu {
    flex: 0 0 auto;
}

.nav-container .nav-actions {
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Fix nav-toggle button alignment */
.nav-toggle {
    display: none;
    margin-left: 10px;
}

/* Ensure nav items and buttons are on same baseline */
.nav-item {
    display: flex;
    align-items: center;
    height: 38px;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
}

/* COI Modal */
.coi-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.coi-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.coi-modal-header {
    background: linear-gradient(135deg, #0066cc, #003d7a);
    color: white;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coi-modal-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.coi-modal-header i {
    font-size: 28px;
}

.coi-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.coi-close:hover {
    opacity: 1;
}

.coi-modal-body {
    padding: 30px;
}

.coi-intro {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Form Styles */
.coi-form-group {
    margin-bottom: 20px;
}

.coi-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.coi-form-group label i {
    margin-right: 6px;
    color: #0066cc;
}

.coi-form-group input,
.coi-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.coi-form-group input:focus,
.coi-form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.coi-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #888;
}

.coi-form-group input:invalid {
    border-color: #ef4444;
}

.coi-form-group input:valid {
    border-color: #10b981;
}

/* Form Actions */
.coi-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.coi-form-actions button {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coi-form-actions .btn-secondary {
    background: #f3f4f6;
    color: #666;
}

.coi-form-actions .btn-secondary:hover {
    background: #e5e7eb;
}

.coi-form-actions .btn-primary {
    background: linear-gradient(135deg, #0066cc, #003d7a);
    color: white;
}

.coi-form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Success Message */
.coi-success {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.coi-success-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    animation: bounceIn 0.5s ease;
}

.coi-success-content i {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
}

.coi-success-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.coi-success-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.coi-success-content .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coi-success-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-coi {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .coi-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .coi-modal-header {
        padding: 20px;
    }
    
    .coi-modal-header h2 {
        font-size: 20px;
    }
    
    .coi-form-actions {
        flex-direction: column;
    }
    
    .coi-form-actions button {
        width: 100%;
    }
}