/* Custom CSS for Association Sportive Management System */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Card Styles */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

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

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold;
}

/* Dashboard Stats */
.stats-card {
    text-align: center;
    padding: 15px;
}

.stats-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0d6efd;
}

.stats-card h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-card p {
    color: #6c757d;
    font-size: 1rem;
}

/* Tables */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: #0d6efd;
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Forms */
.form-label {
    font-weight: bold;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Member Card */
.member-card {
    width: 85.6mm;
    height: 53.98mm;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    padding: 10px;
}

.card-header-section {
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    height: 30px;
    justify-content: space-between;
}

.member-card .logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-left: 10px;
}

.association-name {
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.card-content {
    display: flex;
    padding: 5px;
    flex: 1;
}

.photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
}

.member-card .member-photo {
    width: 70px;
    height: 85px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-number {
    font-size: 10px;
    font-weight: bold;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 5px;
    margin-top: 3px;
    text-align: center;
    width: 100%;
}

.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-right: 5px;
}

.member-name {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #0d6efd;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
    text-align: right;
}

.member-details {
    font-size: 10px;
}

.detail-row {
    display: flex;
    margin-bottom: 3px;
    justify-content: flex-start;
}

.detail-label {
    font-weight: bold;
    margin-left: 5px;
    color: #495057;
    width: 70px;
    text-align: right;
}

.detail-value {
    color: #212529;
    text-align: right;
    flex: 1;
}

.member-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #f7acac;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    color: #6c757d;
    height: 20px;
   
}

.contact-info {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-top: 5px;
}

.contact-info span {
    margin-bottom: 2px;
}

.contact-info i {
    margin-left: 3px;
}

.qr-code {
    height: 40px;
    width: 40px;
    position: absolute;
    bottom: 5px;
    left: 5px;
}

.qr-code img {
    width: 100%;
    height: 100%;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

/* Attendance Calendar */
.calendar-day {
    height: 120px;
    border: 1px solid #ddd;
    padding: 5px;
}

.calendar-day .date {
    font-weight: bold;
    text-align: center;
    padding: 5px;
    background-color: #f8f9fa;
    margin-bottom: 5px;
}

.calendar-day.today {
    background-color: rgba(13, 110, 253, 0.1);
}

.calendar-day.has-session {
    background-color: rgba(25, 135, 84, 0.1);
}

.session-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 20px;
    }
    
    .calendar-day {
        height: auto;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .card {
        box-shadow: none !important;
        border: none !important;
    }
    
    .card-body {
        padding: 0 !important;
    }
    
    .member-card {
        margin: 0 auto;
        page-break-inside: avoid;
    }
}
