/* ==================== PROFESSIONAL GRADUATES STYLES ==================== */

/* Classic Container */
.grads-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Classic Header */
.grads-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.grads-page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: "Georgia", "Times New Roman", serif;
}

.grads-page-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Compact Search Section */
.grads-search-section {
   background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2.5rem;
    border: 1px solid #3d3d3d;
}

/* Compact Search Row */
.grads-search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
	 

}

.grads-search-box h4,
.grads-certificate-search-box h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grads-search-box h4 i,
.grads-certificate-search-box h4 i {
    color: #4f46e5;
    font-size: 0.9rem;
}

/* Compact Search Inputs */
.grads-search-container,
.certificate-search-container {
    display: flex;
    gap: 8px;
}

.grads-search-input,
.certificate-search-input {
    flex: 1;
    padding: 8px 12px;
    border:none;
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    min-width: 0;
}

.grads-search-input:focus,
.certificate-search-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.grads-search-btn,
.certificate-search-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
}

.grads-search-btn:hover,
.certificate-search-btn:hover {
    background: #4338ca;
}

/* Certificate Result Styling */
.certificate-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
}

.certificate-loading {
    color: #6b7280;
    text-align: center;
    padding: 10px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.certificate-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.certificate-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.certificate-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.certificate-header h5 {
    color: #166534;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.certificate-details {
    margin-bottom: 15px;
}

.certificate-details p {
    margin: 8px 0;
}

.certificate-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #059669;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.certificate-download-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

/* Classic Grid */
.grads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Highlighted Card */
.grads-card.highlighted {
    border: 2px solid #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    animation: pulseHighlight 1.5s ease-in-out;
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.2);
    }
}

/* Classic Card Design */
.grads-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border:1px solid var(--text-tertiary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.grads-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #d1d5db;
}

.grads-card-inner {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* Gender-based Avatars */
.grads-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    border: 2px solid #4f46e5;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grads-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Graduate Info */
.grads-info {
    flex: 1;
    margin-bottom: 1.25rem;
    width: 100%;
}
.grads-person-info{
	display:flex;
	justify-content:space-around;
}

.grads-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: "Georgia", serif;
    line-height: 1.3;
}

.grads-challenge-badge {
    background: #4f46e5;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.grads-days {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
   
}

.grads-days i {
    color: #4f46e5;
}

/* Action Buttons */
.grads-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.grads-more-btn {
    background: #fff536;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.grads-more-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.grads-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    width: 100%;
}

.grads-certificate-btn,
.grads-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.625rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.grads-certificate-btn {
    background: #059669;
    color: white;
}

.grads-book-btn {
    background: #4f46e5;
    color: white;
}

.grads-certificate-btn:hover,
.grads-book-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

 

/* Classic Modal */
.grads-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.grads-modal.active {
    opacity: 1;
    visibility: visible;
}

.grads-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.grads-modal-content {
    position: relative;
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grads-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.grads-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.grads-modal-body {
    padding: 2rem;
}

.grads-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.25rem;
    font-family: "Georgia", serif;
}

.grads-modal-audio {
    margin-bottom: 1.5rem;
}

.grads-audio-player {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.grads-audio-player h4 {
    color: #374151;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grads-modal-info {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

.grads-modal-info p {
    margin-bottom: 1rem;
}

.grads-modal-info p:last-child {
    margin-bottom: 0;
}

body.grads-modal-open {
    overflow: hidden;
}

/* Empty State */
.grads-no-graduates {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9fafb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 1rem;
    border: 1px dashed #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grads-container {
        padding: 10px;
    }
    
    .grads-page-title {
        font-size: 2rem;
    }
 
    
    .grads-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .grads-card-inner {
        padding: 1.5rem;
    }
    
    .grads-avatar {
        width: 70px;
        height: 70px;
    }
    
    .grads-name {
        font-size: 1.15rem;
    }
 
	.grads-search-input, .certificate-search-input{
		padding: 7px 5px;
		font-size:10px;
	}
	.grads-search-container, .certificate-search-container{
		height:24px;
		position:relative;
	}
   
	.grads-search-btn, .certificate-search-btn{
		position:absolute;
		right:0;
		padding:0px;
		min-width:40px;
		border-radius: 0 6px 6px 0;
	}
	.grads-search-box h4, .grads-certificate-search-box h4{
		font-size:11px;
	}
	.certificate-search-btn svg, .grads-search-btn svg{
		width:20px;
	}
}

@media (max-width: 480px) {
	.grads-page-subtitle{
		font-size:15px;
	}
    .grads-page-title {
        font-size: 1.75rem;
    }
    
    .grads-search-section {
        padding: 1rem;
    }
    
    .grads-modal-body {
        padding: 1.5rem;
    }
    
    .grads-modal-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 420px) {
	.grads-search-row{
		grid-template-columns:145px 145px;
		 
	}
	.grads-search-section{
		padding:8px;
	}
	.grads-more-btn, .grads-certificate-btn, .grads-book-btn{
		padding: 5px;
	}
}

@media (max-width: 375px){
	.grads-search-row {
        grid-template-columns: 1fr;
    }
	.grads-challenge-badge{
		font-size:9px;
	}
}


/* Custom image styling */
.grads-avatar.custom-image img {
    object-fit: cover !important;
    background-color: #f3f4f6;
}

.grads-avatar.default-avatar img {
    object-fit: contain !important;
    padding: 5px;
    background-color: #f3f4f6;
}

/* Admin panel styling for image preview */
#graduate_custom_image {
    background-color: #fafafa;
}

#upload_image_btn,
#remove_image_btn {
    height: 36px;
    line-height: 36px;
    padding: 0 15px;
}

/* Preload avatars for faster loading */
.grads-avatar img {
    transition: opacity 0.3s ease;
}

.grads-avatar img:not([src]) {
    opacity: 0;
}

.grads-avatar img.loaded {
    opacity: 1;
}
