/* Nav bar and home button styles for registration page */
.top-nav, .bottom-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0 18px 0;
}
.home-btn {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 36px;
    border-radius: 32px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 0 auto;
}
.home-btn:hover, .home-btn:focus {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    transform: translateY(-3px) scale(1.05);
    border-color: #22d3ee;
    color: #fff;
}
.home-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}
/* Layout and card classes for main UI */
.container {
    max-width: 850px;
    margin: 40px auto;
    background: #1a1a2e;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(168, 85, 247, 0.1);
    padding: 32px 18px 24px 18px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}
.header {
    text-align: center;
    margin-bottom: 32px;
}
.header h1 {
    background: linear-gradient(135deg, #a855f7 0%, #22d3ee 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header .subtitle {
    color: #a5b4fc;
}
.buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Mobile: show one button per row */
@media (max-width: 640px) {
    .buttons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .container {
        padding: 20px 5px 18px 5px;
    }
    .button-card-icon { font-size: 36px; }
    .button-card-title { font-size: 17px; }
    .button-card-description { font-size: 13px; }
}
.button-card {
    background: linear-gradient(145deg, #252542 0%, #1a1a2e 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(168, 85, 247, 0.1);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.button-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}
.button-card:hover::before {
    opacity: 1;
}
.button-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.3), 0 0 60px rgba(34, 211, 238, 0.15);
    border-color: #a855f7;
}
.button-card:active {
    transform: scale(0.97);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
}
.button-card-icon {
    font-size: 48px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #a855f7 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}
.button-card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #f8fafc;
    position: relative;
    z-index: 1;
}
.button-card-description {
    font-size: 14px;
    color: #a5b4fc;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}
@font-face {
    font-family: 'Yekan';
    src: url('../../public/Font/Yekan/Yekan.eot');
    src: url('../../public/Font/Yekan/Yekan.eot?#iefix') format('embedded-opentype'),
         url('../../public/Font/Yekan/Yekan.woff') format('woff'),
         url('../../public/Font/Yekan/Yekan.ttf') format('truetype'),
         url('../../public/Font/Yekan/Yekan.svg#Yekan') format('svg');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Yekan', Tahoma, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0f15 0%, #1a1a2e 50%, #0f0f15 100%);
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
    color: #f8fafc;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
}
.file-upload-wrapper input[type="file"] {
    color: transparent;
}
.file-upload-wrapper::after {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    right: 110px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #a5b4fc;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    left: 10px;
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: left;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 21, 0.9);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, #252542 0%, #1a1a2e 100%);
    margin: 5% auto;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.2);
    overflow-y: auto;
}

@keyframes slideDown {
    from { transform: translateY(-50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-modal {
    margin-top: 30px;
    padding: 14px 44px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.close-modal:hover {
    box-shadow: 0 6px 30px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.close-modal:active {
    transform: scale(0.98);
}

.spinner {
    border: 4px solid #2d2d4a;
    border-top: 4px solid #a855f7;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal form utilities */
.eilia-modal-body {
    margin-top: 20px;
    text-align: right;
}

.field-row {
    margin-bottom: 8px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 500;
}

.input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #333355;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    resize: none;
    background: #1a1a2e;
    color: #f8fafc;
    transition: all 0.3s ease;
}
.input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), 0 0 20px rgba(168, 85, 247, 0.1);
}

.input--center { text-align: center; }
.input--left { text-align: left; }

.member-info {
    margin-top: 10px;
    display: none;
    background: #252542;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #cbd5e1;
}

.grid-2 {
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.help-text {
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn--secondary { 
    background: #333355; 
    color: #f8fafc;
}
.btn--secondary:hover {
    background: #444466;
    transform: translateY(-2px);
}
.btn--primary { 
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%); 
    color: white; 
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(168, 85, 247, 0.5);
}
.btn--primary:active {
    transform: scale(0.98);
}

/* File list for multi-file uploads */
.file-list {
    margin-top: 8px;
}
.selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #252542;
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #cbd5e1;
}
.selected-file span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remove-file {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.remove-file:hover { 
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.copyright {
    background: rgba(34, 211, 238, 0.05);
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    margin-top: 40px;
}

/* Daily Messages Styles */
.daily-messages-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin-bottom: 24px;
}

.daily-message {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    direction: rtl;
}

.daily-message.marquee {
    white-space: nowrap;
}

.daily-message.marquee .message-content {
    display: inline-block;
    animation: marquee var(--animation-duration, 20s) linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.daily-message.static .message-content,
.daily-message.alternating .message-content {
    text-align: center;
}

.daily-message.theme-default {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
}

.daily-message.theme-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #ffffff;
}

/* Standalone classes to suppress warnings */
.marquee {}
.static {}
.alternating {}
.theme-default {}
.theme-success {}
.theme-warning {}
.theme-danger {}
.theme-info {}

.daily-message.theme-warning {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
    color: #000000;
}

.daily-message.theme-danger {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: #ffffff;
}

.daily-message.theme-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
    color: #000000;
}

