/* Main Styles for Scam Recovery System */
/* assets/css/styles.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f8fa;
}

a {
    text-decoration: none;
    color: #1e5f74;
}

ul {
    list-style: none;
}

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

/* Button Styles */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #1e5f74;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #154756;
}

.btn-secondary {
    background-color: transparent;
    color: #1e5f74;
    border: 1px solid #1e5f74;
}

.btn-secondary:hover {
    background-color: rgba(30, 95, 116, 0.1);
}

.btn-primary.large,
.btn-secondary.large {
    padding: 12px 25px;
    font-size: 1.1rem;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-link {
    display: inline-block;
    color: #1e5f74;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: #1e5f74;
    font-size: 2rem;
    margin: 0;
}

.logo span {
    font-size: 0.85rem;
    color: #666;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #1e5f74;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 95, 116, 0.9), rgba(30, 95, 116, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #1e5f74;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e5f74;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 1.1rem;
    color: #666;
}

/* Services Section */
.services-section {
    background-color: #f0f4f5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #1e5f74;
    margin-bottom: 15px;
}

/* Process Section */
.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 60px;
    left: 25px;
    width: 3px;
    height: calc(100% - 30px);
    background-color: #e0e0e0;
    z-index: -1;
}

.step-number {
    background-color: #1e5f74;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-content {
    padding-top: 5px;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #1e5f74;
}

/* FAQ Section */
.faq-section {
    background-color: #f0f4f5;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #1e5f74;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-item {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-item h3 {
    color: #1e5f74;
    margin-bottom: 10px;
}

.contact-form {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e5f74;
}

.form-actions {
    margin-top: 30px;
}

/* Footer */
.main-footer {
    background-color: #0d2c38;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #6fc3df;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Form and Utility Styles */
.auth-form {
    max-width: 500px;
    margin: 80px auto;
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.auth-form h1 {
    margin-bottom: 30px;
    color: #1e5f74;
    text-align: center;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.form-section h2 {
    margin-bottom: 20px;
    color: #1e5f74;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-row {
    display: flex;
    gap: 20px;
}

.search-group {
    flex-grow: 1;
}

.search-input {
    display: flex;
    gap: 10px;
}

.search-btn {
    padding: 0 15px;
    background-color: #1e5f74;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert ul {
    margin-left: 20px;
    list-style-type: disc;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-active {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-resolved {
    background-color: #d4edda;
    color: #155724;
}

.status-closed {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.summary-card h2 {
    color: #1e5f74;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.dashboard-main {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dashboard-main h2 {
    color: #1e5f74;
    margin-bottom: 20px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f7f8fa;
    font-weight: 600;
    color: #1e5f74;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

.actions-cell {
    display: flex;
    gap: 10px;
}

/* Status Update Form */
.status-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-select {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 40px 0;
}

.no-data p {
    margin-bottom: 20px;
    color: #666;
}

/* Admin Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: #0d2c38;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    color: #6fc3df;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul li {
    margin-bottom: 5px;
}

.sidebar-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-user {
    font-weight: 500;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e5f74;
}

.dashboard-recent {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.dashboard-recent h2 {
    color: #1e5f74;
    margin-bottom: 20px;
}

/* Complaint Details */
.complaint-section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.complaint-section h2 {
    color: #1e5f74;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.complaint-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.info-group {
    margin-bottom: 15px;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 500;
}

.recovery-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.recovery-card {
    background-color: #f7f8fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.recovery-card h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e5f74;
}

.recovery-actions {
    margin-top: 20px;
}

/* Update Recovery Form */
.update-recovery-form {
    background-color: #f7f8fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.recovery-history table {
    margin-top: 20px;
}

/* Filters Section */
.filters-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Admin Login */
.admin-login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(13, 44, 56, 0.9), rgba(13, 44, 56, 0.7)), url('../images/admin-bg.jpg');
    background-size: cover;
    background-position: center;
}

.admin-login-form {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header h1 {
    color: #1e5f74;
    margin-bottom: 10px;
}

.admin-login-header p {
    color: #666;
}

.admin-login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .main-header .container {
        flex-direction: column;
    }

    .main-nav {
        margin-top: 20px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    section {
        padding: 50px 0;
    }

    .auth-form {
        padding: 30px 20px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}


/* Profile Page Styles */
.profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.page-header h1 {
    color: #1e5f74;
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 15px;
}

.profile-section {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    color: #1e5f74;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.section-header p {
    color: #666;
    margin: 0;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.account-actions {
    display: flex;
    gap: 15px;
}

/* Submit Complaint Page */
.submit-complaint-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}

.form-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-intro {
    margin-bottom: 20px;
    color: #666;
}

.complaint-form .form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.complaint-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.complaint-form .form-section h2 {
    color: #1e5f74;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* View Complaint Page */
.view-complaint-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}

.complaint-details {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.section-title h2 {
    margin: 0;
    color: #1e5f74;
    font-size: 1.5rem;
}

.section-subtitle {
    color: #666;
    margin: 0;
}

.details-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.details-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.details-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.details-section h3 {
    color: #1e5f74;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.detail-value {
    font-weight: 500;
}

.description-box {
    background-color: #f7f8fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.additional-details {
    display: flex;
    gap: 30px;
}

.support-contact {
    background-color: #f7f8fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 15px;
}

/* Progress Bar */
.progress-bar {
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    height: 100%;
    background-color: #1e5f74;
    border-radius: 50px;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Dashboard Styles Update */
.dashboard-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 0;
}

.dashboard-main {
    padding: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .details-summary,
    .details-grid,
    .additional-details {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-form .form-row {
        grid-template-columns: 1fr;
    }
}