* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: keep-all;
}

body {
    font-family: '맑은 고딕', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-y: scroll;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
}

/* Header */
.header {
    background-color: #003851;
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-info {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.page-title {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Navigation */
.nav {
    background-color: #f1f1f1;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-right: 1rem;
}

.nav-link {
    color: #003851;
    text-decoration: none;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #1A7BB2;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(26, 123, 178, 0.25);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #003851;
    border-color: #003851;
}

.btn-primary:hover {
    background-color: #1A7BB2;
    border-color: #17B8EC;
}

.btn-secondary {
    color: #fff;
    background-color: #19A5BF;
    border-color: #19A5BF;
}

.btn-secondary:hover {
    background-color: #0186AF;
    border-color: #17B8EC;
}

.btn-logout {
    color: #003851;
    background-color: #fff;
    border-color: #fff;
    font-weight: bold;
}

.btn-logout:hover {
    color: #003851;
    background-color: #e9ecef;
    border-color: #e9ecef;
}

.btn-sm {
    padding: 0.55rem 0.5rem;
    font-size: 0.8rem;
    line-height: 0.8;
    border-radius: 0.2rem;
}

/* Tables */
.table {
    width: 100%;
    background-color: transparent;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.card-header > .buttons {
    display: flex;
    align-items: center;
}


.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-left: 1rem;
    padding-right: 0.75rem;
    height: 3.4rem;

    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    width: auto;
    flex: 0 1 auto;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card-title {
    margin-bottom: 0.75rem;
}

.card-text:last-child {
    margin-bottom: 0;
}

/* Alerts */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Accent elements with point color */
.accent-text {
    color: #FF1B6A;
}

.accent-bg {
    background-color: #FF1B6A;
    color: white;
}

.accent-border {
    border-color: #FF1B6A;
}

/* Login page specific styles */
.login-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.login-logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-title {
    text-align: center;
    margin-bottom: 0px;
    color: #003851;
}

.login-subtitle {
    text-align: center;
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 1.1rem;
}

.login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

/* Action column width */
.action-column {
    width: 1%;
    white-space: nowrap;
}

/* Checkbox column width */
.checkbox-column {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

/* Year column width */
.year-column {
    width: 1%;
    white-space: nowrap;
}

/* Month column width */
.month-column {
    width: 1%;
    white-space: nowrap;
}

/* Size column width */
.size-column {
    width: 1%;
    white-space: nowrap;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-md-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-right {
        flex-direction: column;
        align-items: center;
    }

    .user-info {
        text-align: center;
        margin-top: 10px;
    }

    .nav-container {
        flex-direction: column;
    }

    .nav-list {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .nav-item {
        margin-right: 0;
    }

    .nav-right {
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .table {
        display: block;
        overflow-x: auto;
    }

    /* Make dropdowns stack vertically on mobile */
    .row {
        flex-direction: column;
    }

    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        max-width: 100%;
    }
}
