/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* ========================================
   NAVBAR TOP STYLES
   ======================================== */
.navbar-top {
    background-color: #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.navbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #4CAF50;
}

/* ========================================
   CONTAINER & SECTIONS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.menu-title {
    color: white;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

/* ========================================
   MENU GRID & CARDS
   ======================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.menu-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: #f8f9fa;
}

.menu-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
}

.menu-card:hover .menu-icon {
    color: #764ba2;
    transform: scale(1.2);
}

.menu-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.menu-description {
    font-size: 14px;
    color: #666;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    text-align: center;
    color: white;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ========================================
   WIF PAGE STYLES
   ======================================== */
.wif-container {
    margin-top: 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.wif-image {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
}

.wif-image img {
    max-width: 1280px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.wif-image img:hover {
    transform: scale(1.02);
}

.wif-title {
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.btn-add-data {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 30px;
    transition: background-color 0.3s;
}

.btn-add-data:hover {
    background-color: #45a049;
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: black;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.1);
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-save {
    background-color: #667eea;
    color: white;
}

.btn-save:hover {
    background-color: #764ba2;
}

.btn-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.btn-cancel:hover {
    background-color: #d0d0d0;
}

/* ========================================
   DATA TABLE STYLES
   ======================================== */
.data-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.data-table-header {
    background-color: #667eea;
    color: white;
    padding: 15px;
    font-weight: 600;
}

.data-table-empty {
    padding: 30px;
    text-align: center;
    color: #999;
}

.data-row {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-row:last-child {
    border-bottom: none;
}

.data-content {
    flex: 1;
}

.data-description {
    color: #333;
    margin-bottom: 5px;
}

.data-time {
    color: #999;
    font-size: 13px;
}

.btn-delete {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
    margin-left: 10px;
}

.btn-delete:hover {
    background-color: #da190b;
}

.no-data-message {
    color: white;
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}

/* ========================================
   RESPONSIVE STYLES - TABLET
   ======================================== */
@media (max-width: 768px) {
    .wif-title {
        font-size: 26px;
    }

    .btn-add-data {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .data-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-delete {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
}

/* ========================================
   RESPONSIVE STYLES - MOBILE
   ======================================== */
@media (max-width: 480px) {
    .wif-container {
        margin-top: 20px;
    }

    .wif-image {
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .wif-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .btn-add-data {
        padding: 10px 15px;
        font-size: 13px;
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 30% auto;
    }

    .modal-header {
        font-size: 20px;
    }

    .form-group textarea {
        min-height: 100px;
        font-size: 13px;
    }

    .data-description {
        font-size: 14px;
    }

    .data-time {
        font-size: 12px;
    }

    .btn-delete {
        padding: 6px 12px;
        font-size: 12px;
    }
}
