/* Student Information Plugin - Frontend Styles */

.sip-lookup-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sip-lookup-header {
    text-align: center;
    margin-bottom: 40px;
}

.sip-lookup-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.sip-lookup-description {
    font-size: 16px;
    color: #646970;
    margin: 0;
    line-height: 1.5;
}

.sip-lookup-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.sip-input-group {
    margin-bottom: 25px;
}

.sip-input-label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #1d2327;
    margin-bottom: 8px;
}

.sip-input-field {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.sip-input-field:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.sip-input-field.error {
    border-color: #d63638;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.1);
}

.sip-input-field.error:focus {
    border-color: #d63638;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.1);
}

.sip-input-field::placeholder {
    color: #a7aaad;
}

.sip-error-message {
    color: #d63638;
    font-size: 14px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

/* Hide empty error messages */
.sip-error-message:empty {
    display: none !important;
}

/* Field-specific error messages */
.sip-field-error {
    color: #d63638;
    font-size: 14px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

.sip-field-error:empty {
    display: none !important;
}

.sip-submit-group {
    text-align: center;
}

.sip-submit-btn {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.sip-submit-btn:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a4b78 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.3);
}

.sip-submit-btn:active {
    transform: translateY(0);
}

.sip-submit-btn:disabled {
    background: #a7aaad;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.sip-submit-btn:disabled:hover {
    background: #a7aaad;
    transform: none;
    box-shadow: none;
}

.sip-submit-btn.loading {
    position: relative;
    overflow: hidden;
}

.sip-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: sip-shimmer 1.5s infinite;
}

@keyframes sip-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.sip-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: sip-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes sip-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sip-student-info {
    animation: sip-fade-in 0.5s ease-out;
}

@keyframes sip-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sip-student-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.sip-student-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f1;
}

.sip-student-photo {
    margin-right: 20px;
    position: relative;
}

.sip-student-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sip-no-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f1 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sip-no-photo-placeholder .dashicons {
    font-size: 32px;
    color: #646970;
}

.sip-student-basic {
    flex: 1;
}

.sip-student-name {
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.sip-student-id-display {
    font-size: 16px;
    color: #646970;
    margin: 0;
    font-weight: 500;
    background: #f6f7f7;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.sip-student-details {
    margin-bottom: 25px;
}

.sip-detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 0;
}

.sip-detail-label {
    font-weight: 600;
    color: #1d2327;
    margin-right: 15px;
    min-width: 120px;
    display: flex;
    align-items: center;
}

.sip-detail-label .dashicons {
    margin-right: 8px;
    color: #2271b1;
    font-size: 18px;
}

.sip-detail-value {
    color: #646970;
    font-size: 16px;
}

.sip-student-notes {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #2271b1;
}

.sip-notes-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
}

.sip-notes-title .dashicons {
    margin-right: 10px;
    color: #2271b1;
    font-size: 20px;
}

.sip-notes-content {
    color: #1d2327;
    line-height: 1.6;
    font-size: 15px;
}

.sip-notes-content p {
    margin: 0 0 15px 0;
}

.sip-notes-content p:last-child {
    margin-bottom: 0;
}


.sip-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    animation: sip-slide-down 0.3s ease-out;
}

/* Hide empty error messages */
.sip-error-message:empty {
    display: none !important;
}

.sip-error-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.sip-error-content .dashicons {
    margin-right: 12px;
    font-size: 20px;
    color: #d63638;
}

.sip-success-message {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    animation: sip-slide-down 0.3s ease-out;
}

.sip-success-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.sip-success-content .dashicons {
    margin-right: 12px;
    font-size: 20px;
    color: #00a32a;
}

@keyframes sip-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sip-lookup-container {
        padding: 20px 15px;
    }
    
    .sip-lookup-title {
        font-size: 24px;
    }
    
    .sip-lookup-form {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .sip-student-card {
        padding: 20px;
    }
    
    .sip-student-header {
        flex-direction: column;
        text-align: center;
    }
    
    .sip-student-photo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .sip-detail-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sip-detail-label {
        margin-right: 0;
        margin-bottom: 5px;
        min-width: auto;
    }
    
    .sip-submit-btn {
        width: 100%;
        min-width: auto;
    }
    
    .sip-student-notes {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .sip-lookup-title {
        font-size: 20px;
    }
    
    .sip-lookup-description {
        font-size: 14px;
    }
    
    .sip-student-name {
        font-size: 20px;
    }
    
    .sip-notes-title {
        font-size: 16px;
    }
    
    .sip-notes-content {
        font-size: 14px;
    }
}
