html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}




/* Å×ÀÌºí ±âº» */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    /* Çì´õ + ¼¿ */
    .table th,
    .table td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
    }

    /* Çì´õ ½ºÅ¸ÀÏ */
    .table th {
        background-color: #f5f5f5;
        font-weight: bold;
    }

    /* Çà hover È¿°ú */
    .table tbody tr:hover {
        background-color: #f9f9f9;
    }

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

    .form-table th {
        width: 150px;
        text-align: left;
        padding: 10px;
        background-color: #f5f5f5;
    }

    .form-table td {
        padding: 10px;
    }

    .form-table input {
        width: 250px;
        padding: 5px;
    }

/* »óÅÂ »ö»ó */
.ok {
    color: #28a745;
    font-weight: bold;
}

.err {
    color: #dc3545;
    font-weight: bold;
}

/* ¹èÁö */
.badge {
    padding: 3px 6px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
}

.badge-sql {
    background-color: #007bff;
}

.badge-dll {
    background-color: #28a745;
}

.login-wrap {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f6fa;
}

.login-box {
    width: 360px;
    padding: 30px;
    border: 1px solid #ddd;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.logo-area img {
    width: 150px;
    margin-bottom: 10px;
}

.login-field {
    margin-top: 15px;
    text-align: left;
}

    .login-field input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

.login-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: #2f80ed;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}

    .login-btn:hover {
        background: #1c60c7;
    }

.login-error-box {
    margin-top: 10px;
    background: #ffe5e5;
    color: red;
    padding: 10px;
}

.history-box {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fafafa;
}


.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #2f3e4e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000; /* ´Ù¸¥ ¿ä¼Ò À§·Î */
}

    .top-bar .left {
        display: flex;
        align-items: center;
        gap: 20px;
    }

.logo {
    height: 35px;
}

.top-bar nav a {
    color: #ddd;
    text-decoration: none;
    margin-right: 15px;
    font-size: 14px;
}

    .top-bar nav a.active {
        color: #fff;
        font-weight: bold;
        border-bottom: 2px solid #4da3ff;
    }

.top-bar .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar button {
    background: transparent;
    border: 1px solid #aaa;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
}

    .top-bar button:hover {
        background-color: #4da3ff;
    }

.content {
    padding: 20px;
    margin-top: 60px;
}

.file-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.file-input {
    font-size: 14px;
}

.row-ok {
    background-color: #f0fff4;
}

.row-fail {
    background-color: #ffecec;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: 0.2s;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: #3b7ddd;
        outline: none;
        box-shadow: 0 0 0 2px rgba(59,125,221,0.2);
    }

textarea.form-control {
    height: 100px;
    min-height: 100px;
    resize: none;
    overflow-y: auto;
}

/* Ä«µå */
.card-box {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ¹öÆ° */
.btn-primary {
    background: #3b7ddd;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-primary:hover {
        background: #2f6fcc;
    }

    .btn-primary:disabled {
        background: #aaa;
        cursor: not-allowed;
    }

/* º¸Á¶ ¹öÆ° */
.btn-outline {
    border: 1px solid #3b7ddd;
    color: #3b7ddd;
    background: white;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

    .btn-outline:hover {
        background: #f0f4ff;
    }

    .btn-outline:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 125, 221, 0.3);
    }

    .btn-outline:active {
        background: #e0eaff;
    }

    .btn-outline:disabled {
        border-color: #ccc;
        color: #aaa;
        background: #f5f5f5;
        cursor: not-allowed;
        opacity: 0.7;
    }

        .btn-outline:disabled:hover {
            border-color: #ccc;
            color: #aaa;
        }

/* ¼½¼Ç Å¸ÀÌÆ² */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}








/* ¼±ÅÃ ¿ä¾à */
.selected-box {
    background: #f8fbff;
    border: 1px solid #d6e4ff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.selected-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selected-item {
    background: #3b7ddd;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

/* ¾ÆÄÚµð¾ð */
.client-box {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.client-header {
    padding: 12px;
    background: #f7f7f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

    .client-header:hover {
        background: #eaeaea;
    }

.arrow {
    font-size: 12px;
}

.db-list {
    padding: 10px 16px;
}

.db-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.db-name {
    font-weight: 500;
}

.db-info {
    color: #888;
    font-size: 12px;
}

.btn-base {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-sm {
    height: 32px;
    font-size: 13px;
    padding: 4px 8px;
}






.client-body {
    padding: 12px;
}

.api-key {
    margin-bottom: 12px;
    font-size: 13px;
}

.api-value {
    margin-left: 6px;
    color: #666;
}

/* Ä«µå ¸®½ºÆ® */
.client-db-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Ä«µå */
.db-card {
    width: 260px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    background: #fff;
}

/* Ãß°¡ Ä«µå */
.add-card {
    border-style: dashed;
}

/* Á¦¸ñ */
.db-title {
    font-weight: 600;
    margin-bottom: 8px;
}

/* ³»¿ë */
.db-content {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

/* ¹öÆ° ¿µ¿ª */
.db-actions {
    display: flex;
    gap: 6px;
}

/* hover È¿°ú */
.db-card:hover {
    border-color: #3b7ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.client-add-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.client-left {
    display: flex;
    align-items: center;
    gap: 6px;
}


.client-id {
    font-size: 12px;
    color: #888;
    margin-left: 4px;
}

.client-actions {
    display: flex;
    gap: 8px;
}

.filter-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

    .filter-box .form-control {
        width: auto;
    }

.pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}





.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: white;
    width: 80%;
    max-height: 80%;
    overflow: auto;
    border-radius: 8px;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.close-btn {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}