@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f1f3f4;
    margin: 0;
    display: flex;
    height: 100vh;
    color: #202124;
}

/* Боковое меню */
nav {
    width: 250px;
    background: white;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 10;
    flex-shrink: 0;
}

nav h2 {
    padding: 0 20px;
    color: #1a73e8;
}

nav a {
    display: block;
    padding: 15px 20px;
    color: #3c4043;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

nav a:hover, nav a.active {
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 0 25px 25px 0;
    margin-right: 15px;
}

/* Основной контент */
main {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.content-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для страницы Connect (Таймер) */
.connect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.timer-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.2s;
}

.timer-wrapper:active {
    transform: scale(0.95);
}

.timer-circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.timer-bg {
    fill: none;
    stroke: #e6e6e6;
    stroke-width: 10;
}

.timer-progress {
    fill: none;
    stroke: #1a73e8;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.code-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #202124;
}

.copy-hint {
    margin-top: 20px;
    color: #5f6368;
    font-size: 14px;
}
/* Стили для форм (Login / Reg) */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    margin-bottom: 8px;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #1a73e8;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #1557b0;
}

.form-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #5f6368;
}

.form-footer a {
    color: #1a73e8;
    text-decoration: none;
}

/* Стили для настроек */
.settings-section {
    border-bottom: 1px solid #e8eaed;
    padding: 20px 0;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    margin-top: 0;
    color: #3c4043;
}

.theme-toggle {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-outline {
    background: white;
    border: 1px solid #dadce0;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-outline:hover, .btn-outline.active {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
}

.connected-app-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
}

.btn-danger {
    background-color: #d93025;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #b2251e;
}