/* 버튼 스타일 */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 기본 버튼 스타일 */
.btn-primary {
    background-color: #1f2f83; /* navy-600 */
    color: #e6e9f2; /* navy-100 */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #16225a; /* navy-500 */
    box-shadow: 0 10px 15px -3px rgba(4, 7, 8, 0.5);
}

.btn-primary:hover:not(:disabled) {
    background-color: #16225a; /* navy-500 */
}

.btn-primary:active:not(:disabled) {
    background-color: #1f2f83; /* navy-600 */
}

.btn-primary:disabled {
    background-color: #040708; /* navy-800 */
    border-color: #0d1531; /* navy-900 */
    color: #a0a6b8; /* navy-400 */
}

/* 보조 버튼 스타일 */
.btn-secondary {
    background-color: #0d1531; /* navy-700 */
    color: #d1d5e0; /* navy-200 */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1f2f83; /* navy-600 */
    box-shadow: 0 10px 15px -3px rgba(4, 7, 8, 0.5);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #1f2f83; /* navy-600 */
}

.btn-secondary:active:not(:disabled) {
    background-color: #0d1531; /* navy-700 */
}

.btn-secondary:disabled {
    background-color: #040708; /* navy-900 */
    border-color: #0d1531; /* navy-800 */
    color: #7a8299; /* navy-500 */
}

/* 카메라 시작 버튼 */
.btn-camera-start {
    background-color: #16225a; /* navy-500 */
    color: #e6e9f2; /* navy-100 */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1f2f83; /* navy-400 */
    box-shadow: 0 10px 15px -3px rgba(4, 7, 8, 0.5);
}

.btn-camera-start:hover:not(:disabled) {
    background-color: #1f2f83; /* navy-400 */
}

.btn-camera-start:active:not(:disabled) {
    background-color: #16225a; /* navy-500 */
}

.btn-camera-start:disabled {
    background-color: #040708; /* navy-800 */
    border-color: #0d1531; /* navy-900 */
    color: #a0a6b8; /* navy-400 */
}

/* 녹화 시작 버튼 */
#startRecording {
    background-color: #dc2626; /* red-600 */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ef4444; /* red-500 */
    box-shadow: 0 10px 15px -3px rgba(4, 7, 8, 0.5);
}

#startRecording:hover:not(:disabled) {
    background-color: #ef4444; /* red-500 */
}

#startRecording:active:not(:disabled) {
    background-color: #dc2626; /* red-600 */
}

#startRecording:disabled {
    background-color: #040708; /* navy-800 */
    border-color: #0d1531; /* navy-900 */
    color: #a0a6b8; /* navy-400 */
}

/* 녹화 중지 버튼 */
#stopRecording {
    background-color: #b91c1c; /* red-700 */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dc2626; /* red-600 */
    box-shadow: 0 10px 15px -3px rgba(4, 7, 8, 0.5);
}

#stopRecording:hover:not(:disabled) {
    background-color: #dc2626; /* red-600 */
}

#stopRecording:active:not(:disabled) {
    background-color: #b91c1c; /* red-700 */
}

#stopRecording:disabled {
    background-color: #040708; /* navy-900 */
    border-color: #0d1531; /* navy-800 */
    color: #7a8299; /* navy-500 */
}

/* Material Icons 정렬 수정 */
.material-icons {
    vertical-align: middle;
    line-height: 1;
    font-size: 20px;
}

/* 버튼 내 아이콘과 텍스트 정렬 */
button .material-icons {
    margin-right: 0.5rem;
    margin-top: -1px;
}

/* 비디오 컨테이너 스타일 */
video {
    background-color: #040708; /* navy-900 */
    aspect-ratio: 16/9;
    box-shadow: 0 0 20px rgba(4, 7, 8, 0.5);
}

/* 로딩 스피너 */
.loading-spinner {
    animation: spin 1s linear infinite;
    border-radius: 9999px;
    height: 2rem;
    width: 2rem;
    border: 4px solid #16225a; /* navy-500 */
    border-top-color: transparent;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 업로드 진행 상태 */
.upload-progress {
    width: 100%;
    background-color: #0d1531; /* navy-700 */
    border-radius: 9999px;
    height: 0.625rem;
    margin-bottom: 1rem;
}

.upload-progress-bar {
    background-color: #16225a; /* navy-500 */
    height: 0.625rem;
    border-radius: 9999px;
    transition: width 0.3s;
}

/* 에러 메시지 */
.error-message {
    color: #f87171; /* red-400 */
    background-color: rgba(127, 29, 29, 0.3); /* red-900/30 */
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #7f1d1d; /* red-800 */
}

/* 성공 메시지 */
.success-message {
    color: #4ade80; /* green-400 */
    background-color: rgba(22, 101, 52, 0.3); /* green-900/30 */
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #166534; /* green-800 */
}

/* 모니터링 스타일 */
.monitoring-card {
    background-color: #0d1531; /* navy-800 */
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border: 1px solid #16225a; /* navy-700 */
}

.monitoring-value {
    color: #d1d5e0; /* navy-200 */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.monitoring-label {
    color: #a0a6b8; /* navy-400 */
    font-size: 0.875rem;
}

/* 상태 표시등 */
.status-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}

.status-indicator.online {
    background-color: #22c55e; /* green-500 */
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.5);
}

.status-indicator.offline {
    background-color: #ef4444; /* red-500 */
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.5);
}

/* 분석 결과 카드 */
.analysis-card {
    background-color: #0d1531; /* navy-800 */
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #16225a; /* navy-700 */
    margin-bottom: 1rem;
}

.analysis-title {
    color: #d1d5e0; /* navy-200 */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.analysis-content {
    color: #a0a6b8; /* navy-300 */
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background-color: #0d1531; /* navy-800 */
}

::-webkit-scrollbar-thumb {
    background-color: #1f2f83; /* navy-600 */
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #16225a; /* navy-500 */
} 