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

body {
    font-family: 'Spoqa Han Sans Neo', 'sans-serif';
    background-color: #fff;
    color: #000;
    font-size: 14px;
}

a {
    color: #000;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Layout */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 20px;
}

.main-header h1 {
    font-size: 24px;
    font-weight: 500;
}

.main-header nav {
    flex-grow: 1;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-nav a {
    font-size: 16px;
    padding: 5px 10px;
}

.logout-btn {
    border: 1px solid #000;
    color: #fff;
    background: #000;
    padding: 8px 15px;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .main-header {
        flex-wrap: wrap;
    }

    .main-header h1 {
        flex-grow: 1;
    }

    .main-header nav {
        order: 1;
        width: 100%;
        flex-grow: 0;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #eee;
        padding: 10px 0;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav li {
        text-align: center;
        padding: 10px 0;
    }

    .logout-btn {
        display: none;
    }
}

/* Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    margin-bottom: 20px;
}

.grid-item {
    padding: 25px;
}

.recent-projects {
    background-color: #f0f0f0;
}

.recent-contacts {
    background-color: #cbcbcb;
    position: relative;
}

.recent-contacts::after {
    content: '×';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.grid-item-full-width {
    grid-column: 1 / -1;
}

.project-item, .contact-item {
    border-bottom: 1px solid #ccc;
    padding: 15px 0;
}

.project-item:first-of-type, .contact-item:first-of-type {
    padding-top: 0;
}

.project-item:last-child, .contact-item:last-child {
    border-bottom: none;
}

.project-name, .contact-name {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 5px;
}

.project-client, .project-amount, .contact-details {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.project-actions {
    margin-top: 10px;
}

.project-actions button {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

/* Recent Schedule */
.recent-schedule {
    color: #fff;
    position: relative;
    padding: 85px 20px 185px;
    margin-bottom: 0;
}

.recent-schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: #000;
    z-index: -1;
}

.recent-schedule h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
}

.schedule-list {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.schedule-logo {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
}

.schedule-details {
    padding-top: 10px;
}

.schedule-details li {
    margin-bottom: 10px;
    list-style-type: none;
    display: flex;
    align-items: center;
}

.schedule-details li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 10px;
}

/* Bottom Sections Container */
.grid-item-full-width-container {
    grid-column: 1 / -1;
    display: flex;
    gap: 0;
    align-items: stretch;
    margin-bottom: 0;
}

.field-daily { flex: 1; background-color: #f0f0f0; }
.save-drawing { flex: 1; background-color: #cbcbcb; }
.purchase-order { flex: 3; background-color: #f8f8f8; }
.photo-gallery-section { flex: 1; background-color: #e0e0e0; }

.field-daily, .save-drawing, .purchase-order, .photo-gallery-section {
    padding: 25px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.section-header a {
    font-size: 14px;
    color: #555;
}

/* Content Lists */
.daily-list, .drawing-list, .order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.order-list {
    align-items: flex-start;
    text-align: left;
}

.daily-item, .drawing-item, .order-item {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
.daily-item:last-child, .drawing-item:last-child, .order-item:last-child {
    border-bottom: none;
}
.daily-date {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Photo Gallery */
#photoGallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

/* Footer Bar */
.footer-bar {
    height: 240px;
    background-color: #000;
    width: 100%;
    padding: 15px 40px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    box-sizing: border-box;
}

a.footer-bar-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

a.footer-bar-link::before {
    content: '◀';
    margin-right: 8px;
    color: white;
}

a.footer-bar-link:hover {
    text-decoration: underline;
}

.view-all-btn {
    display: inline-block;
    margin-top: 20px;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    height: 40px;
    line-height: 20px;
} 