/* Public styles for Blood Donor Manager */

/* Donor List Page */
.ekota-donor-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filter section */
.donor-filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-group .button {
    margin-right: 10px;
}

/* Donor Grid */
.donor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Donor Card */
.donor-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.donor-card:hover {
    transform: translateY(-5px);
}

.donor-photo {
    height: 200px;
    background: #f5f5f5;
    overflow: hidden;
}

.donor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donor-photo .no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

.donor-info {
    padding: 20px;
}

.donor-name {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #333;
}

.donor-blood-group {
    display: inline-block;
    padding: 4px 8px;
    background: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 10px;
}

.donor-location {
    color: #666;
    margin-bottom: 10px;
}

.donor-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.donor-status.available {
    background: #2ecc71;
    color: #fff;
}

.donor-status.unavailable {
    background: #95a5a6;
    color: #fff;
}

.view-profile {
    display: inline-block;
    padding: 8px 16px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.view-profile:hover {
    background: #2980b9;
    color: #fff;
}

/* Donor Profile Page */
.ekota-donor-profile {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 10px;
}

/* ID Card */
.id-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    border: 1px solid #ddd;
}

.id-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
                linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    pointer-events: none;
}

.id-card-front, .id-card-back {
    padding: 1.5rem;
    position: relative;
    background: #fff;
}

.id-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f0f0f0;
}

.id-card-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.id-card-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.id-card-content {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.id-card-photo {
    width: 120px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.id-card-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255,255,255,0.3);
    pointer-events: none;
}

.id-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-card-info {
    flex: 1;
    padding: 0.5rem 0;
}

.info-row {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #eee;
    padding-bottom: 0.6rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    width: 90px;
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.info-row span {
    color: #333;
    font-size: 0.95rem;
    flex: 1;
}

.blood-group {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem !important;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.id-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

.qr-code {
    text-align: center;
    background: #f9f9f9;
    padding: 0.6rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qr-code img {
    width: 80px;
    height: 80px;
    margin-bottom: 0.4rem;
    border: 1px solid #eee;
    padding: 0.4rem;
    background: #fff;
}

.qr-code p {
    margin: 0;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.validity p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

/* Back of ID Card */
.id-card-back {
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

.back-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #eee;
}

.back-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-section {
    background: #fff;
    padding: 1.2rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-section h4 {
    margin: 0 0 0.8rem;
    color: #333;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eee;
}

.info-section p {
    margin: 0.4rem 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.info-section strong {
    color: #333;
    font-weight: 600;
}

/* Print Actions */
.print-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.print-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.print-actions button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.print-actions button .dashicons {
    font-size: 1.2rem;
    width: auto;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .id-card-content {
        flex-direction: column;
        align-items: center;
    }

    .id-card-photo {
        width: 150px;
        height: 180px;
        margin-bottom: 1.5rem;
    }

    .id-card-info {
        width: 100%;
    }

    .id-card-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .back-content {
        grid-template-columns: 1fr;
    }

    .print-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .print-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .ekota-donor-profile {
        max-width: none;
        margin: 0;
        padding: 0;
        background: none;
    }

    .id-card {
        box-shadow: none;
        border: 1px solid #000;
    }

    .print-actions {
        display: none;
    }
} 