* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f5; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
h1 { color: #333; }
.link-item { color: #666; text-decoration: none; }
.link-item:hover { color: #e74c3c; }

#form-container { background: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
form { display: flex; gap: 10px; flex-wrap: wrap; }
input, button { padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; }
input { flex: 1; min-width: 200px; }
button { background: #3498db; color: white; border: none; cursor: pointer; }
button:hover { background: #2980b9; }

.cert-item { background: white; margin-bottom: 10px; padding: 15px; border-radius: 8px; box-shadow: 0 1px 5px rgba(0,0,0,0.1); }
.cert-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cert-domain { font-weight: bold; font-size: 18px; color: #2c3e50; }
.cert-expires { color: #27ae60; }
.cert-expires.warning { color: #f39c12; }
.cert-expires.critical { color: #e74c3c; }
.cert-actions { display: flex; gap: 10px; }
.cert-actions button { padding: 8px 12px; font-size: 14px; }

#days-left { font-weight: bold; padding: 4px 8px; border-radius: 4px; }
.green { background: #d5f4e6; color: #27ae60; }
.yellow { background: #fef9e7; color: #f39c12; }
.red { background: #fadbd8; color: #e74c3c; }

.user-item {
    background: white;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-login {
    font-weight: 500;
    font-size: 16px;
    color: #2c3e50;
    flex: 1;
}

.user-item button {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.user-item button:hover {
    opacity: 0.9;
}

/* Дополнительно для страницы пользователей */
#users-container {
    margin-top: 20px;
}

.user-item + .user-item {
    margin-top: 10px;
}

@media (max-width: 768px) {
    form { flex-direction: column; }
    input { min-width: auto; }

    .user-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .user-login {
        font-size: 18px;
    }
}