* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.role-selector {
    text-align: center;
    padding: 20px 0;
}

.role-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.role-btn {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.role-btn:hover {
    background-color: #45a049;
}

.panel {
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-top: 20px;
}

.hidden {
    display: none;
}

h1, h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

kbd {
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    color: #333;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    white-space: nowrap;
}

.alert-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 30px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.alert-btn:hover {
    background-color: #d32f2f;
}

.status-indicator {
    margin-top: 25px;
    text-align: center;
}

.status {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: #e0e0e0;
    font-size: 18px;
    font-weight: bold;
    min-width: 150px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.connected {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

.alert-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-right: 10px;
}

.alert-active {
    background-color: #f44336;
    box-shadow: 0 0 10px #f44336;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    animation: pulse-green 1.5s infinite;
}

.confirm-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.alarm-controls {
    text-align: center;
    margin: 15px 0;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.direct-links {
    margin-top: 30px;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
}

.direct-links p {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.direct-link {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.direct-link:hover {
    background-color: #e9e9e9;
    color: #000;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.warning-message {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    text-align: center;
}

.warning-message p {
    margin: 5px 0;
}

/* Arabic text direction and font */
.arabic-text {
    direction: rtl;
    font-family: 'Arial', 'Tahoma', sans-serif;
    text-align: center;
}

/* Logo container */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 10px;
}

.logo-text h1 {
    font-size: 24px;
    margin: 5px 0;
    color: #4CAF50;
}

.logo-text h2, .logo-text h3 {
    font-size: 18px;
    margin: 5px 0;
    color: #333;
}

/* Keyboard shortcuts */
.keyboard-shortcuts {
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.keyboard-shortcuts h3 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
}

.keyboard-shortcuts ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.keyboard-shortcuts li {
    margin: 8px 0;
    text-align: center;
}

/* Alert buttons group */
.alert-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

/* Secondary buttons */
.alert-btn.secondary {
    background-color: #2196F3;
}

.alert-btn.secondary:hover {
    background-color: #0b7dda;
}

.status-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 22px;
    vertical-align: middle;
}

.status-icon.green {
    color: #4CAF50;
}

.status-icon.red {
    color: #f44336;
} 