﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f1f5f9;
}

/* Sidebar */
.sidebar {
    width: 240px;
    height: 100vh;
    background: #1e293b;
    position: fixed;
    color: white;
}

    .sidebar h2 {
        text-align: center;
        padding: 20px 0;
    }

    .sidebar a {
        display: block;
        padding: 12px 20px;
        color: #cbd5e1;
        text-decoration: none;
    }

        .sidebar a:hover {
            background: #334155;
            color: white;
        }

/* Main Content */
.main {
    margin-left: 240px;
    padding: 20px;
}

/* Card */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Inputs */
.input-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Button */
.btn-primary {
    background: #2563eb;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

    .btn-primary:hover {
        background: #1d4ed8;
    }

/* Responsive */
@media(max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main {
        margin-left: 0;
    }
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

    .tab-btn.active {
        color: #2563eb;
        border-bottom: 3px solid #2563eb;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.exp-box {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

/* Responsive */
@media(max-width:768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
    }
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.input-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.input-error {
    border: 2px solid red !important;
}

/* Toast */
#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc2626;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: none;
    font-weight: 600;
    z-index: 9999;
}

    #toast button {
        background: transparent;
        border: none;
        color: white;
        font-weight: bold;
        margin-left: 10px;
        cursor: pointer;
    }

.btn-secondary {
    background: #64748b;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
