/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

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

.school-icon {
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.school-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.2;
}

.school-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Verification Card */
.verification-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.verification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.card-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(39, 174, 96, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 0.95rem;
}

.info-item span {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}

.status-active {
    color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem !important;
}

/* Message Card */
.message-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    border-right: 4px solid #3498db;
}

.message-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.message-card p {
    color: #34495e;
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 1rem;
}

.message-card strong {
    color: #3498db;
    font-weight: 700;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Contact Info Grid */
.contact-info {
    width: 100%;
    max-width: 500px;
}

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

.info-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    padding: 15px;
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper svg {
    stroke: white;
    fill: white;
    stroke-width: 2;
}

.info-box h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-box p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: white;
    font-size: 0.9rem;
}

.footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.close {
    position: absolute;
    left: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    background: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close:hover {
    color: #000;
    transform: rotate(90deg);
    transition: all 0.3s ease;
}

.modal-content h2 {
    padding: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    margin: 0;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.map-container {
    position: relative;
    height: 300px;
}

.location-details {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.location-details p {
    margin: 10px 0;
    color: #2c3e50;
    line-height: 1.6;
}

.location-details strong {
    color: #3498db;
    font-size: 1.1rem;
}

.location-details a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.location-details a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .school-name {
        font-size: 2rem;
    }

    .school-subtitle {
        font-size: 1rem;
    }

    .verification-card,
    .message-card {
        padding: 20px;
        margin: 0 10px;
    }

    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .verified-badge {
        align-self: center;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        min-width: auto;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-box {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .school-name {
        font-size: 1.8rem;
    }

    .verification-card,
    .message-card {
        padding: 15px;
        margin: 0 5px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .info-item label {
        font-size: 0.85rem;
    }

    .info-item span {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .footer {
        font-size: 0.8rem;
        padding: 15px 0;
    }
}

/* Loading and Animation Effects */
.verification-card {
    animation: fadeInUp 0.6s ease;
}

.message-card {
    animation: fadeInUp 0.8s ease;
}

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

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .header,
    .footer,
    .action-buttons {
        display: none;
    }

    .verification-card,
    .message-card {
        box-shadow: none;
        border: 2px solid #3498db;
        page-break-inside: avoid;
    }
}