/* Style for Imam Ja'afar Al-Sadiq University - Dhi Qar Branch Website */

:root {
    --primary-color: #111;
    --secondary-color: #222;
    --accent-color: #f5b842;
    --text-color: #eee;
    --light-text: #fff;
    --dark-text: #111;
    --light-bg: #222;
    --input-bg: #2d2d2d;
    --input-border: #444;
    --card-bg: #1a1a1a;
    --error-color: #ff4d4d;
    --success-color: #4CAF50;
    --border-radius: 8px;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #000000;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 40%, #101010 100%);
    direction: rtl;
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
    background-attachment: fixed;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Dark theme styles */
.dark-theme {
    background: radial-gradient(circle at center top, #1a1a1a, #0a0a0a);
    color: var(--text-color);
    position: relative;
    animation: gradientShift 20s ease infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dark-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="%23ffffff" opacity="0.03" width="2" height="2"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* Background particles */
.dark-theme::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(245, 184, 66, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(245, 184, 66, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(245, 184, 66, 0.02) 0%, transparent 60%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: linear-gradient(to left, #000000, #111111);
    box-shadow: var(--box-shadow), 0 0 15px rgba(245, 184, 66, 0.1);
    padding: 15px 0;
    border-bottom: 1px solid var(--accent-color);
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 100px;
    height: auto;
    margin-left: 20px;
}

.site-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 15px;
}

.site-title .university-name,
.site-title .department-name {
    color: var(--light-text);
}

.site-title .university-name {
    font-size: 24px;
    font-weight: 700;
}

.site-title .department-name {
    font-size: 16px;
    color: var(--light-text);
    opacity: 0.9;
}

/* Login Panel in Header */
.login-panel-container {
    margin-left: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-panel {
    background: #2d2d2d;
    border: 2px solid transparent;
    border-image: linear-gradient(to right, var(--accent-color), #f8d07a);
    border-image-slice: 1;
    border-radius: var(--border-radius);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.login-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 184, 66, 0.2);
}

.login-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: all 0.6s;
    z-index: 0;
}

.login-panel:hover::before {
    left: 100%;
}

.login-icon {
    font-size: 1.2rem;
    background: linear-gradient(to right, var(--accent-color), #f8d07a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(245, 184, 66, 0.08);
    position: relative;
    z-index: 1;
}

.login-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    background: linear-gradient(to right, var(--accent-color), #f8d07a) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
}

.login-text {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* Professors Panel Styling */
.professors-panel {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-image: linear-gradient(to right, #3b82f6, #60a5fa);
    border-image-slice: 1;
}

.professors-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.professors-panel .login-icon {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.professors-panel .login-icon::after {
    background: linear-gradient(to right, #3b82f6, #60a5fa) border-box;
}

/* Hero Section */
.hero {
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Main Content */
.main-content {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.content-section {
    margin-bottom: 30px;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 3px;
    width: 50px;
    background-color: var(--accent-color);
}

/* Services Grid Styling */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 1));
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--accent-color);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-item i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-out;
    transform: translateY(20px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 184, 66, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 184, 66, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 184, 66, 0); }
}

/* Main Form Card Styling */
.main-form-card {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

/* Card styles without animations */
.main-form-card .card-background {
    display: none;
}

.main-form-card .shimmer-effect {
    display: none;
}

.main-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    z-index: 1;
}

.main-form-card .card-body {
    padding: 2rem;
}

.intro-section h1 {
    color: var(--light-text);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.intro-section .lead {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Service Panels Styling */
.service-panels {
    margin: 25px 0;
}

.service-panel {
    background: #2d2d2d;
    border: 2px solid transparent;
    border-image: linear-gradient(to right, var(--accent-color), #f8d07a);
    border-image-slice: 1;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.service-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(245, 184, 66, 0.2);
}

.service-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: all 0.6s;
    z-index: 0;
}

.service-panel:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--accent-color), #f8d07a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 15px;
    display: inline-block;
    height: 80px;
    width: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(245, 184, 66, 0.08);
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(to right, var(--accent-color), #f8d07a) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
}

.service-panel h3 {
    color: var(--light-text);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.service-panel p {
    color: #b0b0b0;
    margin-bottom: 0;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Form Controls Styling */
.form-control,
.form-select {
    background-color: rgba(25, 25, 25, 0.8);
    border: 1px solid var(--input-border);
    border-bottom: 2px solid var(--accent-color);
    color: var(--light-text);
    height: calc(2.5rem + 2px);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-size: 1rem;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(30, 30, 30, 0.9);
    border-color: #f8d07a;
    box-shadow: 0 0 15px rgba(245, 184, 66, 0.3);
    color: var(--light-text);
    transform: translateY(-2px);
    outline: none;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f5b842' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
}

.form-control::-webkit-file-upload-button,
.form-control::file-selector-button {
    background: linear-gradient(135deg, var(--accent-color), #f8d07a);
    color: var(--dark-text);
    border: none;
    padding: 0.5rem 1rem;
    margin: -0.375rem -0.75rem;
    margin-inline-end: 0.75rem;
    border-inline-end: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button,
.form-control:hover:not(:disabled):not([readonly])::file-selector-button {
    background: linear-gradient(135deg, #f8d07a, var(--accent-color));
    box-shadow: 0 0 10px rgba(245, 184, 66, 0.3);
    transform: translateY(-1px);
}

.file-upload-title {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.file-upload-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 3px;
    width: 50px;
    background-color: var(--accent-color);
}

.upload-section {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    border: 1px solid rgba(245, 184, 66, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.form-label {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    position: relative;
    display: block;
    transition: all 0.3s ease;
}

.form-group:hover .form-label {
    color: #f8d07a;
    text-shadow: 0 0 5px rgba(245, 184, 66, 0.3);
}

/* Image Preview Styling */
.image-preview {
    min-height: 0;
    max-height: 150px;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    margin-top: 10px;
}

.image-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-color);
    background-color: #000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: scale(0.98);
}

.image-preview img:hover {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(245, 184, 66, 0.3);
    border-color: #f8d07a;
}

/* Submit Button Styling */
.submit-btn {
    background: linear-gradient(to right, var(--accent-color), #f8d07a);
    border: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.85rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 220px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 184, 66, 0.4);
}

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

.submit-btn .spinner-border {
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
}

/* Warning Text */
.warning-text {
    color: #ff3333;
    font-weight: 600;
    background-color: rgba(255, 0, 0, 0.07);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    border-right: 3px solid #ff3333;
    font-size: 1rem;
}

/* Problem Description Field */
.problem-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}

.problem-textarea {
    min-height: 150px;
    font-size: 1.1rem;
    padding: 15px;
    resize: vertical;
    border-left: 3px solid var(--accent-color);
}

/* Help Buttons */
.help-buttons-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    animation: fadeIn 1s ease-out 0.3s both;
}

.help-buttons-section h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.help-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.help-btn {
    min-width: 150px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.help-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(245, 184, 66, 0.1);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50px;
}

.help-btn:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

.help-btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 184, 66, 0.3);
}

/* Developer Info */
.developer-info {
    margin-top: 2rem;
    color: #777;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #000;
    color: var(--light-text);
    padding: 20px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin: 15px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.contact-info {
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-left: 10px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInDown 0.8s ease-out;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    .login-panel-container {
        margin-left: 0;
        margin-top: 10px;
        flex-direction: column;
        gap: 10px;
    }
    
    .login-panel {
        min-width: 120px;
        padding: 10px 15px;
        justify-content: center;
    }
    
    .login-text {
        font-size: 0.85rem;
    }
    
    .login-icon {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    
    .university-name {
        font-size: 20px;
    }
    
    .department-name {
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .header-content {
        padding: 10px 0;
    }
    
    .login-panel {
        min-width: 100px;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .login-text {
        font-size: 0.8rem;
    }
    
    .login-icon {
        width: 22px;
        height: 22px;
        font-size: 0.9rem;
    }
    
    .university-name {
        font-size: 18px;
    }
    
    .department-name {
        font-size: 12px;
    }
}
