/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 스타일 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-container h1 {
    font-size: 1.5rem;
    color: #333;
}

#userInfo {
    display: flex;
    align-items: center;
    gap: 20px;
}

#userInfo a {
    color: #007bff;
    text-decoration: none;
}

#userInfo a:hover {
    text-decoration: underline;
}

/* 로그인 폼 스타일 */
#loginForm {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#loginForm h2 {
    text-align: center;
    margin-bottom: 20px;
}

#loginForm button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#loginForm button:hover {
    background-color: #0056b3;
}

/* 방문 섹션 스타일 */
.visit-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-item label {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.info-item span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.url-input {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#startButton {
    background-color: #28a745;
    color: #fff;
}

#startButton:hover {
    background-color: #218838;
}

#stopButton {
    background-color: #dc3545;
    color: #fff;
}

#stopButton:hover {
    background-color: #c82333;
}

#resetButton {
    background-color: #6c757d;
    color: #fff;
}

#resetButton:hover {
    background-color: #5a6268;
}

/* 마이페이지 스타일 */
.purchase-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.purchase-form h2 {
    margin-bottom: 20px;
}

.purchase-history {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.purchase-history h2 {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.apply-btn, .delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.apply-btn {
    background-color: #28a745;
    color: #fff;
}

.apply-btn:hover {
    background-color: #218838;
}

.delete-btn {
    background-color: #dc3545;
    color: #fff;
}

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

/* 푸터 스타일 */
footer {
    background-color: #fff;
    padding: 20px;
    margin-top: 50px;
    border-top: 1px solid #ddd;
}

#networkState {
    font-weight: bold;
}

#networkState.online {
    color: #28a745;
}

#networkState.offline {
    color: #dc3545;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .visit-info {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
    }
} 