/* Global Styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --ai-color: #3498db;
    --quantum-color: #e74c3c;
    --hybrid-color: #9b59b6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
    padding-top: 70px; /* Space for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Footer */
.safenet-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.safenet-footer a {
    color: var(--light-color);
}

.safenet-footer a:hover {
    color: white;
    text-decoration: none;
}

.social-links a {
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-right: 0.5rem;
}

.category-tag.AI {
    background-color: var(--ai-color);
}

.category-tag.Quantum {
    background-color: var(--quantum-color);
}

.category-tag.Hybrid {
    background-color: var(--hybrid-color);
}

/* Cards */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Dashboard Stats */
.stats-card {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.stats-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-card .count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stats-card .label {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Research Papers */
.paper-card {
    height: 100%;
}

.paper-card .card-body {
    display: flex;
    flex-direction: column;
}

.paper-card .card-text {
    flex-grow: 1;
}

/* Blog Posts */
.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-post-meta {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Approval System */
.approval-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.badge-pending {
    background-color: var(--warning-color);
}

.badge-approved {
    background-color: var(--success-color);
}

.badge-rejected {
    background-color: var(--danger-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Custom Elements */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.search-form {
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    background-color: #e3e8f0;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: -70px;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(254, 254, 255, 0.95) 50%, rgba(255, 255, 255, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-graphic {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.btn-purple {
    background-color: #7928ca;
    border-color: #7928ca;
    color: white;
}

.btn-purple:hover {
    background-color: #6a23b5;
    border-color: #6a23b5;
    color: white;
}

/* Research Focus Areas */
.research-focus-container {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.title-underline {
    height: 3px;
    width: 80px;
    background-color: #4a6fdc;
    margin: 0 auto;
}

.section-title {
    font-weight: 700;
    color: #2c3e50;
}

.research-icon {
    width: 48px;
    height: 48px;
}

.research-card {
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.research-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    align-self: center;
}

/* Paper Cards */
.paper-card {
    transition: all 0.3s ease;
    border: none;
}

.paper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.paper-title {
    font-size: 1.2rem;
    line-height: 1.4;
    color: #2c3e50;
}

.author-name {
    color: #6c757d;
    font-size: 0.9rem;
}

.paper-abstract {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.category-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
}

.bg-purple {
    background-color: #7928ca !important;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .stats-card .icon {
        font-size: 2rem;
    }
    
    .stats-card .count {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
}

/* Contact Page Styles */
.contact-section {
    background-color: #1e3a4f;
    color: white;
    padding: 4rem 0;
}

.contact-form-wrapper {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white;
    text-decoration: none;
}

.contact-form .form-control {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #5d4c8d;
    box-shadow: 0 0 0 0.2rem rgba(93, 76, 141, 0.25);
}

.contact-form .btn-primary {
    background-color: #5d4c8d;
    border-color: #5d4c8d;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: #4a3c70;
    border-color: #4a3c70;
}

.faq-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.accordion-button:not(.collapsed) {
    background-color: #e6f0fa;
    color: #1e3a4f;
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* Feedback Styles */
.feedback-card {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.feedback-card.show {
    transform: translateY(0);
    opacity: 1;
}

.feedback-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.feedback-card .card-body {
    padding: 1.25rem;
}

.feedback-card .card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Rating stars */
.text-warning {
    color: #f1c40f !important;
}

/* Approval filters */
.nav-tabs .nav-link {
    color: var(--dark-color);
    border: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 3px solid var(--primary-color);
}

.nav-tabs .nav-link:hover:not(.active) {
    color: var(--primary-dark);
    border-bottom: 3px solid rgba(52, 152, 219, 0.5);
}
