/* WebmailTotalAdmin - Estilos */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f7fa; color: #333; }
a { text-decoration: none; color: #3498db; }
a:hover { text-decoration: underline; }

/* Login */
.login-container {
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-box {
    background: white; padding: 40px; border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); width: 100%; max-width: 400px;
}
.login-box h1 { text-align: center; color: #2c3e50; margin-bottom: 10px; font-size: 1.5em; }
.login-box p { text-align: center; color: #7f8c8d; margin-bottom: 30px; }
.login-box label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%; padding: 12px; border: 2px solid #e0e0e0;
    border-radius: 6px; font-size: 14px; margin-bottom: 20px;
    transition: border-color 0.3s;
}
.login-box input:focus { border-color: #667eea; outline: none; }
.btn { width: 100%; padding: 12px; border: none; border-radius: 6px;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.btn-primary { background: #667eea; color: white; }
.btn-primary:hover { background: #5a6fc7; }

/* Error/Success */
.error { background: #fee; color: #c0392b; padding: 10px 15px;
    border-radius: 6px; margin-bottom: 15px; border-left: 4px solid #c0392b; }
.success { background: #efe; color: #27ae60; padding: 10px 15px;
    border-radius: 6px; margin-bottom: 15px; border-left: 4px solid #27ae60; }

/* Header */
.header {
    background: white; padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex; justify-content: space-between; align-items: center;
}
.header h2 { color: #2c3e50; font-size: 1.3em; }
.header-right { display: flex; align-items: center; gap: 20px; }
.header-right span { color: #7f8c8d; font-size: 0.9em; }
.btn-logout {
    background: #e74c3c; color: white; padding: 8px 20px;
    border-radius: 6px; font-size: 14px; cursor: pointer;
}
.btn-logout:hover { background: #c0392b; text-decoration: none; }

/* Main */
.main { padding: 30px; max-width: 1400px; margin: 0 auto; }

/* Buttons */
.btn-sm {
    display: inline-block; padding: 6px 15px; border-radius: 5px;
    font-size: 13px; font-weight: 600; cursor: pointer; margin-right: 5px;
}
.btn-create { background: #27ae60; color: white; border: none; }
.btn-create:hover { background: #219a52; text-decoration: none; }
.btn-edit { background: #f39c12; color: white; border: none; }
.btn-edit:hover { background: #e67e22; text-decoration: none; }
.btn-delete { background: #e74c3c; color: white; border: none; }
.btn-delete:hover { background: #c0392b; text-decoration: none; }

/* Table */
.table-container { background: white; border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); overflow: hidden; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; }
th { background: #2c3e50; color: white; padding: 12px 15px; text-align: left; font-weight: 600; }
td { padding: 10px 15px; border-bottom: 1px solid #ecf0f1; }
tr:hover { background: #f8f9fa; }

/* Quota bar */
.quota-bar-container { width: 100%; max-width: 200px; }
.quota-bar { width: 100%; height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; }
.quota-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
.quota-fill.green { background: #27ae60; }
.quota-fill.yellow { background: #f39c12; }
.quota-fill.red { background: #e74c3c; }
.quota-text { font-size: 12px; color: #7f8c8d; margin-top: 3px; }

/* Forms */
.form-container { background: white; padding: 30px; border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); margin-top: 20px; max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
.form-group input, .form-group select {
    width: 100%; padding: 10px; border: 2px solid #e0e0e0;
    border-radius: 6px; font-size: 14px;
}
.form-group input:focus, .form-group select:focus { border-color: #667eea; outline: none; }
.btn-submit { background: #667eea; color: white; padding: 12px 30px;
    border: none; border-radius: 6px; font-size: 15px; cursor: pointer; }
.btn-submit:hover { background: #5a6fc7; }
.btn-cancel { background: #95a5a6; color: white; padding: 12px 30px;
    border: none; border-radius: 6px; font-size: 15px; cursor: pointer; }
.btn-cancel:hover { background: #7f8c8d; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.stat-card h3 { font-size: 2em; color: #667eea; }
.stat-card p { color: #7f8c8d; font-size: 0.9em; }

/* Confirm dialog */
.confirm-box { text-align: center; padding: 20px; }
.confirm-box h3 { margin-bottom: 15px; color: #e74c3c; }
.confirm-box .btn-danger { background: #e74c3c; color: white; padding: 12px 30px;
    border: none; border-radius: 6px; font-size: 15px; cursor: pointer; margin-right: 10px; }
.confirm-box .btn-cancel { background: #95a5a6; color: white; padding: 12px 30px;
    border: none; border-radius: 6px; font-size: 15px; cursor: pointer; }
