/* PTJM COLLEGE RAJGIR - BLUE THEME (#0000FF) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Arial', sans-serif; 
    background: linear-gradient(135deg, #0000FF, #0000AA, #1a1aff); 
    color: #000; 
    min-height: 100vh;
}
.header { 
    background: linear-gradient(135deg, #0000FF, #1a1aff, #0000AA); 
    color: white; 
    text-align: center; 
    padding: 20px; 
    box-shadow: 0 5px 20px rgba(0,0,255,0.3);
}
.logo { width: 80px; height: 80px; border-radius: 50%; border: 3px solid white; }
.header h1 { font-size: 28px; margin: 10px 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.header small { font-size: 14px; opacity: 0.9; }

nav { 
    background: linear-gradient(90deg, #0000AA, #0000FF, #1a1aff); 
    padding: 12px; 
    text-align: center; 
    box-shadow: 0 2px 10px rgba(0,0,255,0.2);
}
nav a { 
    color: white; font-weight: bold; margin: 0 20px; text-decoration: none; 
    padding: 8px 16px; border-radius: 20px; transition: all 0.3s;
}
nav a:hover, nav a.active { 
    background: rgba(255,255,255,0.2); transform: scale(1.05);
}
.container { 
    max-width: 1000px; margin: 30px auto; padding: 30px; 
    background: rgba(255,255,255,0.95); border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,255,0.2);
}
h2 { color: #0000FF; text-align: center; margin-bottom: 25px; font-size: 26px; }

/* FORM STYLES */
.admission-form { max-width: 700px; margin: 0 auto; }
.admission-form input, .admission-form select, .admission-form textarea { 
    width: 100%; padding: 15px; margin: 8px 0; border: 2px solid #0000FF; 
    border-radius: 10px; font-size: 16px; background: #f8f9ff;
}
.admission-form input:focus, textarea:focus { 
    border-color: #1a1aff; box-shadow: 0 0 10px rgba(0,0,255,0.3); outline: none;
}
.row { display: flex; gap: 15px; }
.row input { flex: 1; }
button, .download-btn, .btn { 
    background: linear-gradient(135deg, #0000FF, #1a1aff); 
    color: white; padding: 15px 30px; border: none; border-radius: 12px; 
    cursor: pointer; text-decoration: none; display: inline-block; 
    margin: 10px 5px; font-weight: bold; font-size: 16px; 
    transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,255,0.3);
}
button:hover, .download-btn:hover, .btn:hover { 
    background: linear-gradient(135deg, #0000AA, #0000FF); 
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,255,0.4);
}

/* PERFECT BLUE ID CARD */
.idcard { 
    width: 95%; max-width: 420px; height: 270px; margin: 30px auto; 
    background: linear-gradient(145deg, #E6E6FF 0%, #B0C4DE 30%, #0000FF 70%, #000080 100%) !important; 
    border: 5px solid #0000AA !important; 
    border-radius: 20px !important; 
    padding: 20px !important; 
    position: relative !important; 
    box-shadow: 0 12px 35px rgba(0,0,255,0.4) !important; 
    font-size: 13px !important; 
    color: #000 !important;
    font-weight: 500;
}
.id-header { 
    display: flex; align-items: center; margin-bottom: 15px; 
    background: rgba(255,255,255,0.2); padding: 10px; border-radius: 10px;
}
.id-logo { 
    width: 70px; height: 70px; margin-right: 15px; 
    border: 3px solid white; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.id-header h3 { 
    margin: 0; font-size: 18px; color: white !important; text-shadow: 1px 1px 2px rgba(0,0,0,0.7); 
    font-weight: bold;
}
.id-header p { margin: 2px 0; font-size: 12px; color: white; }
.id-details { 
    line-height: 1.4; margin: 10px 0; 
    background: rgba(255,255,255,0.8); padding: 12px; border-radius: 8px;
}
.id-details div { margin: 4px 0; }
.id-details strong { color: #0000AA; font-size: 14px; }
.id-photo { 
    position: absolute; top: 25px; right: 25px; 
    width: 85px; height: 105px; 
    border: 4px solid #0000AA; border-radius: 12px; 
    background: #fff !important; background-size: cover !important; 
    background-position: center !important; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.id-footer { 
    position: absolute; bottom: 15px; right: 20px; 
    font-size: 11px; color: white; text-align: right;
    background: rgba(0,0,128,0.8); padding: 8px 12px; border-radius: 8px;
}

/* ADMIN TABLE */
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 2px solid #0000FF; padding: 12px; text-align: left; }
th { 
    background: linear-gradient(135deg, #0000FF, #1a1aff) !important; 
    color: white !important; font-weight: bold; font-size: 15px;
}
tr:nth-child(even) { background: #f0f8ff; }
tr:hover { background: #e6f3ff !important; }

/* LOGIN PAGE */
.login-box { 
    background: linear-gradient(145deg, rgba(230,230,255,0.95), rgba(176,196,222,0.9)); 
    border: 3px solid #0000FF; 
}
.login-container { background: linear-gradient(135deg, #0000FF, #1a1aff); }

/* PRINT - FORCE COLORS */
@media print { 
    body { background: white !important; }
    .idcard { 
        box-shadow: none !important; margin: 0 !important; 
        -webkit-print-color-adjust: exact !important; 
        color-adjust: exact !important; print-color-adjust: exact !important;
        background: linear-gradient(145deg, #E6E6FF 0%, #B0C4DE 30%, #0000FF 70%, #000080 100%) !important;
        border: 5px solid #0000AA !important;
    }
    .idcard * { 
        -webkit-print-color-adjust: exact !important; 
        color-adjust: exact !important; print-color-adjust: exact !important;
    }
    nav, .btn, .download-btn, h2 { display: none !important; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .row { flex-direction: column; }
    .idcard { width: 98%; height: 240px; font-size: 11px; padding: 15px; }
    .id-photo { width: 70px; height: 85px; }
}

/* FORM ENHANCEMENTS */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: bold;
    color: #0000AA;
    margin-bottom: 5px;
    font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #0000FF;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9ff;
    transition: all 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a1aff;
    box-shadow: 0 0 12px rgba(0,0,255,0.3);
    outline: none;
    background: white;
}
.form-row {
    display: flex;
    gap: 15px;
}
.form-row .form-group {
    flex: 1;
}
.form-actions {
    text-align: center;
    margin-top: 30px;
}
.form-actions button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
}

/* RESPONSIVE FORM */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Figma-Style Glassmorphism ID Card */
.figma-card {
    position: relative;
    width: 380px; height: 240px;
    margin: 30px auto;
    background: linear-gradient(145deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.05) 50%, 
        rgba(0,0,255,0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0,0,255,0.15),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5);
    overflow: hidden;
}

.card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0,0,255,0.1) 0%, 
        rgba(26,26,255,0.05) 50%, 
        rgba(0,0,128,0.1) 100%);
    border-radius: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 20px 25px 15px;
    position: relative;
    z-index: 2;
}

.college-logo img {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.college-info {
    margin-left: 18px;
    flex: 1;
}

.college-info h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #0000FF, #1a1aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.college-info p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.student-details {
    padding: 0 25px 20px;
    position: relative;
    z-index: 2;
}

.detail-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 13px;
}

.detail-row .label {
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    min-width: 55px;
}

.detail-row .value {
    color: white;
    font-weight: 500;
    flex: 1;
    padding-left: 8px;
}

.student-photo {
    position: absolute;
    top: 28px;
    right: 25px;
    width: 90px;
    height: 110px;
    border-radius: 16px;
    border: 4px solid rgba(255,255,255,0.6);
    background: linear-gradient(145deg, #f0f0ff, #e6e6ff);
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 3;
}

.card-footer {
    position: absolute;
    bottom: 20px;
    right: 25px;
    left: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.validity {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    background: rgba(0,0,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.signature {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    border-top: 2px solid rgba(255,255,255,0.5);
    padding-top: 8px;
    white-space: nowrap;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0000FF, #4169E1, #0000FF);
    border-radius: 26px;
    z-index: 0;
    filter: blur(12px);
    opacity: 0.6;
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(45deg, #0000FF, #1a1aff, #0000AA);
    z-index: 1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

/* PRINT PERFECT COLORS */
@media print {
    .figma-card {
        box-shadow: none !important;
        transform: none !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
        background: linear-gradient(145deg, rgba(230,230,255,0.9), rgba(176,196,222,0.8), rgba(0,0,255,0.3)) !important;
        border: 3px solid #0000FF !important;
    }
    .student-photo {
        border-color: #0000FF !important;
        background: #f0f0ff !important;
    }
}

