/* Base Styles */
:root {
    /* OMYS Colors */
    --primary-color: #28245f;
    --primary-light: #3a3780;
    --primary-dark: #1c1a47;
    --secondary-color: #f8a31c;
    --accent-color: #6c63ff;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* Neutral Colors */
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --white: #ffffff;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #28245f 0%, #3a3780 100%);
    --gradient-secondary: linear-gradient(135deg, #f8a31c 0%, #ffca28 100%);
    --gradient-success: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    --gradient-accent: linear-gradient(135deg, #6c63ff 0%, #8a84ff 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--dark-color);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--secondary-color);
    top: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    bottom: -150px;
    left: -150px;
    animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--success-color);
    top: 50%;
    left: -100px;
    animation: float 30s infinite ease-in-out;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    bottom: 100px;
    right: 100px;
    animation: float 15s infinite ease-in-out reverse;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    margin: 20px auto;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.8s ease-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-text .logo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.logo-highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 20px 0 60px;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Form */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 20px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 20px 20px 20px 60px;
    border: 2px solid var(--gray-light);
    border-radius: 15px;
    font-size: 18px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Poppins', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 36, 95, 0.1);
    transform: translateY(-2px);
}

.input-indicator {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
}

.input-hints {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-btn {
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(40, 36, 95, 0.3);
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.search-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(40, 36, 95, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.search-tips {
    background: var(--light-color);
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    border-left: 4px solid var(--secondary-color);
}

.search-tips h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-tips ul {
    list-style: none;
    padding-left: 0;
}

.search-tips li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--gray);
}

.search-tips li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 10px;
    font-size: 20px;
}

/* Results Section */
.results-section {
    margin: 60px 0;
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #f8a31c 0%, #e67e22 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: var(--shadow);
}

.error-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.error-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 5px;
}

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

/* Success Results */
.results-header {
    background: var(--gradient-success);
    color: white;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
}

.success-icon {
    font-size: 50px;
    flex-shrink: 0;
}

.success-content h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.result-count {
    font-size: 32px;
    font-weight: 800;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-info {
    margin-left: auto;
}

.info-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

/* Slot Cards */
.slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.slot-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.slot-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-id, .card-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
}

.card-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 30px;
}

/* Participant name with responsive font and truncation */
.participant-name {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
    
    /* Truncation properties */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    
    /* Container for dynamic sizing */
    display: block;
    width: 100%;
    max-height: 60px; /* Maximum 2 lines height */
    line-height: 1.2;
    
    /* Allow line breaking for very long names */
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

/* Dynamic font sizing based on name length */
.participant-name[data-length="very-long"] {
    font-size: 22px; /* 75% of original */
}

.participant-name[data-length="extremely-long"] {
    font-size: 20px; /* 66% of original */
}

.participant-name[data-length="super-long"] {
    font-size: 18px; /* 58% of original */
    -webkit-line-clamp: 3; /* Allow 3 lines for super long names */
    max-height: 70px;
}

/* For single line truncation (optional) */
.participant-name.truncate-single {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    max-height: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
}

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
}

.info-item small {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.info-item strong {
    font-size: 16px;
    color: var(--dark-color);
}

.slot-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.slot-time {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
}

.slot-time i {
    font-size: 20px;
    color: var(--success-color);
}

.slot-time small {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.slot-time strong {
    font-size: 16px;
    color: var(--dark-color);
}

.venue-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
}

.venue-info i {
    font-size: 20px;
    color: var(--accent-color);
    margin-top: 3px;
}

.venue-info small {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.venue-info strong {
    font-size: 16px;
    color: var(--dark-color);
}

.card-footer {
    background: var(--light-color);
    padding: 20px 30px;
    border-top: 1px solid var(--gray-light);
}

.registration-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.print-btn {
    background: var(--gradient-primary);
    color: white;
}

.new-search-btn {
    background: var(--gradient-secondary);
    color: white;
}

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

/* Information Section */
.info-section {
    margin-top: 80px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.info-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 20px;
}

.info-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
}

.footer-credit {
    font-style: italic;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 15px;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--gray-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AJAX Results Animation */
.results-section {
    transition: all 0.3s ease;
}

.slot-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Logo Styles */
.omys-logo, .event-logo {
    width: 100%;
    /* height: 100%; */
    object-fit: contain;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: transparent; /* Remove gradient background */
    border-radius: 0; /* Remove rounded corners for logos */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 28px;
    box-shadow: none; /* Remove shadow for logos */
    overflow: hidden; /* Ensure logos don't overflow */
}

/* Fallback text if logos don't exist */
.omys-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: var(--primary-color);
}

/* Event Badge for Ilm-o-Kamaal logo */
.event-badge {
    width: 160px;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgb(46 115 204 / 30%);
    font-size: 14px;
    overflow: hidden;
}

/* Developer Card Styles */
.developer-name {
    font-weight: 700;
    color: var(--primary-color);
    margin: 8px 0;
    font-size: 18px;
}

.info-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-card p i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Adjust info cards for better spacing */
.info-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 280px;
}

.info-card h4 {
    margin-bottom: 15px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Developer Card Styles */
.developer-logo, .team-logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    margin: 10px 0;
    display: block;
}

.team-logo {
    max-height: 130px;
    margin: 5px 0 15px 0;
}

.developer-name {
    font-weight: 700;
    color: var(--primary-color);
    margin: 8px 0 15px 0;
    font-size: 18px;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Adjust icon spacing in info cards */
.info-card p i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Ensure consistent card height */
.info-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 290px; /* Increased for additional content */
    padding: 25px 20px;
}

/* GitHub icon specific */
.fa-github {
    font-size: 16px;
}

/* Print Styles */
.print-header, .print-footer {
    display: none;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.search-btn, .action-btn {
    position: relative;
    overflow: hidden;
}

/* Notification Styles */
.app-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    max-width: 350px;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 15px;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--gray-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Share Button Styles */
.share-btn {
    background: linear-gradient(135deg, #6c63ff 0%, #8a84ff 100%);
    color: white;
}

.share-btn:hover {
    background: linear-gradient(135deg, #5a52e0 0%, #7a74e6 100%);
}

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

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

/* Share Option Hover Effects */
.share-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Print-only styles for share content */
@media print {
    .share-btn, .share-modal {
        display: none !important;
    }
}