/* Diaspot - Modern Medical Website Styles */

:root {
    --primary-color: #7bc4c4;
    --primary-dark: #5ba3a3;
    --primary-light: #9fd8d8;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header Styles */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    padding: 8px 0;
}

.header-top-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    font-size: 14px;
    color: white;
}

.header-top a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.header-top a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.header-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 120px;
    width: auto;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-dark);
    background: var(--bg-light);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 20px;
}

/* Main Content */
.main {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 60px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

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

.hero-text {
    font-size: 1.2rem;
    color: white;
    line-height: 1.8;
    max-width: 800px;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.contact-card {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-card p {
    font-size: 1.1rem;
    font-weight: 600;
}

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

/* Hours Section */
.hours-section {
    margin: 60px 0;
}

.section-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.hours-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hours-table th,
.hours-table td {
    padding: 15px 20px;
    text-align: left;
}

.hours-table thead {
    background: var(--primary-color);
    color: white;
}

.hours-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.hours-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.hours-table tbody tr:hover {
    background: var(--bg-light);
}

.hours-table tbody tr:last-child {
    border-bottom: none;
}

.hours-table td {
    color: var(--text-color);
}

/* Holidays Section */
.holidays-section {
    background: var(--bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
    margin: 50px 0;
    text-align: center;
}

.holidays-section h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.holidays-date {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.holidays-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    color: var(--text-light);
}

.holidays-content p {
    margin-bottom: 15px;
}

.holidays-content a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

.holidays-content a:hover {
    text-decoration: underline;
}

/* Patients Page */
.patients-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
}

.patients-intro a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.patients-intro a:hover {
    text-decoration: underline;
}

.materials-list {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
}

.materials-list li {
    padding: 15px 20px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.materials-list li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 0;
}

.materials-list li:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-info a {
    color: var(--primary-dark);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.team-section {
    margin-top: 40px;
}

.team-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.team-list {
    list-style: none;
    padding: 0;
}

.team-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.team-list li:last-child {
    border-bottom: none;
}

.billing-section {
    margin-top: 40px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.billing-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

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

/* Admin Styles */
.admin-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.admin-container h1 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
    background: #34495e;
}

.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary-color);
    color: white;
}

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

.editor-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.editor-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

.editor-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Toast Editor Customization */
.toastui-editor-defaultUI {
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

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

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

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

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top-content {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }

    .header-main {
        padding: 10px 15px;
    }

    .logo img {
        height: 80px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 15px;
        box-shadow: var(--shadow);
        z-index: 1001;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0;
    }

    .contact-card {
        padding: 20px;
    }

    .hours-section {
        margin: 40px 0;
    }

    .hours-table {
        font-size: 0.85rem;
    }

    .hours-table th,
    .hours-table td {
        padding: 10px 8px;
    }

    .holidays-section {
        padding: 25px 15px;
        margin: 30px 0;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-info {
        text-align: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .materials-list li {
        padding: 12px 15px;
    }

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

    .admin-nav a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .hours-table {
        font-size: 0.8rem;
    }

    .hours-table th,
    .hours-table td {
        padding: 8px 6px;
    }

    .contact-card h3 {
        font-size: 0.9rem;
    }

    .contact-card p {
        font-size: 1rem;
    }

    .logo img {
        height: 60px;
    }
}
