/* Office Window Control System Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4285f4;
    --success-color: #0f9d58;
    --warning-color: #f4b400;
    --danger-color: #db4437;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

h1 {
    font-size: 28px;
    color: var(--primary-color);
}

h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    min-width: 200px;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.control-buttons button {
    width: 100%;
}

/* Status */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-label {
    font-size: 14px;
    color: #757575;
    font-weight: 500;
}

.status-value {
    font-size: 18px;
    font-weight: 600;
}

.status-link {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.status-link:hover {
    color: #1a73e8;
    border-bottom: 2px solid var(--primary-color);
}

.status-message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: 500;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* History */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-action {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Action type colors */
.history-action.action-open {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.history-action.action-close {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.history-action.action-stop {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.history-time {
    font-size: 14px;
    color: #757575;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: #757575;
    font-size: 14px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}
