* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

header {
    background: #fc4c02;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 28px;
    margin: 0;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header h1 a:hover {
    opacity: 0.9;
}

/* Hamburger menu button - hidden on desktop */
.hamburger {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hamburger-icon {
    display: inline-block;
    width: 20px;
    height: 14px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 6px;
}

.hamburger-icon span:nth-child(3) {
    top: 12px;
}

.hamburger.active .hamburger-icon span:nth-child(1) {
    top: 6px;
    transform: rotate(135deg);
}

.hamburger.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active .hamburger-icon span:nth-child(3) {
    top: 6px;
    transform: rotate(-135deg);
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-menu button {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    font-size: 14px;
}

.nav-menu button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 20px;
    }

    header h1 img {
        height: 35px !important;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        flex-direction: column;
        background: #fc4c02;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        min-width: 200px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a,
    .nav-menu button {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
    }
}

.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h2 {
    margin-bottom: 15px;
    color: #fc4c02;
    font-size: 20px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

button {
    background: #fc4c02;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

button:hover {
    background: #e03c00;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button.secondary {
    background: #4a90e2;
}

button.secondary:hover {
    background: #357abd;
}

button.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin-left: 10px;
}

button.btn-danger {
    background: #dc3545;
}

button.btn-danger:hover {
    background: #c82333;
}

button.btn-success {
    background: #28a745;
}

button.btn-success:hover {
    background: #218838;
}

button.btn-warning {
    background: #fd7e14;
}

button.btn-warning:hover {
    background: #e8590c;
}

input:disabled,
select:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.success {
    color: #28a745;
    padding: 10px;
    background: #d4edda;
    border-radius: 4px;
    margin-bottom: 15px;
}

.error {
    color: #dc3545;
    padding: 10px;
    background: #f8d7da;
    border-radius: 4px;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-connected {
    background: #d4edda;
    color: #28a745;
}

.status-disconnected {
    background: #f8d7da;
    color: #dc3545;
}

.hidden {
    display: none;
}

.logout-btn {
    float: right;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    font-size: 12px;
}

.steps {
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background: #fc4c02;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.code-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    font-family: monospace;
    font-size: 13px;
    overflow-x: auto;
    margin: 10px 0;
}

.flex-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.info-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Mobile responsive header */
@media (max-width: 767px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header h1 {
        font-size: 22px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px;
    }

    .nav-menu a,
    .nav-menu button {
        font-size: 12px;
        padding: 6px 12px;
    }
}
