/* Additional styles for student photos and enhanced results display */

.student-photo-placeholder {
    width: 120px;
    height: 150px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border: 3px solid #C00404;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.student-photo-placeholder::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
}

.student-photo-placeholder::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    border-radius: 30px 30px 0 0;
    background: #ccc;
}

/* Enhanced result header with university seal effect */
.result-header::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2L13.09 8.26L20 9L13.09 9.74L12 16L10.91 9.74L4 9L10.91 8.26L12 2Z"/></svg>');
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Enhanced table styling */
.subjects-table {
    border: 2px solid #343a40;
}

.subjects-table th {
    background: linear-gradient(135deg, #343a40, #495057);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.subjects-table td {
    transition: background-color 0.2s ease;
}

.subjects-table tbody tr:hover {
    background: #e8f4f8 !important;
    transform: scale(1.01);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Print button styling */
.print-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.print-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Watermark effect for authenticity */
.result-section::after {
    content: 'MJPRU';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 8em;
    font-weight: bold;
    color: rgba(192, 4, 4, 0.05);
    pointer-events: none;
    z-index: 1;
}

.result-section {
    position: relative;
}

.result-section > * {
    position: relative;
    z-index: 2;
}

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

.year-result {
    animation: fadeInUp 0.6s ease forwards;
}

.year-result:nth-child(2) { animation-delay: 0.1s; }
.year-result:nth-child(3) { animation-delay: 0.2s; }
.year-result:nth-child(4) { animation-delay: 0.3s; }

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .result-header::before {
        display: none;
    }
    
    .result-number {
        font-size: 0.9em;
        padding: 8px 12px;
    }
    
    .university-name {
        font-size: 1.4em;
    }
    
    .print-button {
        bottom: 10px;
        right: 10px;
        padding: 12px 16px;
        font-size: 0.9em;
    }
}
