* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f5f7fa;
    --text-color: #2c3e50;
    --btn-color: #27ae60;
    --btn-text-color: #ffffff;
    --border-radius: 15px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --islamic-green: #27ae60;
    --islamic-gold: #f39c12;
    --islamic-teal: #16a085;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.cover-image {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    margin-bottom: -60px;
    position: relative;
    z-index: 1;
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--islamic-green);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: -70px auto 20px;
    object-fit: cover;
    display: block;
    box-shadow: var(--shadow);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--islamic-green) 0%, var(--islamic-teal) 100%);
    color: var(--btn-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: -70px auto 20px;
    box-shadow: var(--shadow);
    border: 5px solid var(--islamic-gold);
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.profile-title {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

.profile-description {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Links Section */
.links-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: var(--btn-color);
    color: var(--btn-text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

/* Apply gradient hanya jika tidak ada custom color */
.link-btn:not([style*="background-color"]) {
    background: linear-gradient(135deg, var(--islamic-green) 0%, var(--islamic-teal) 100%);
}

.link-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.link-btn:active {
    transform: translateY(0);
}

.link-btn i {
    font-size: 18px;
}

.link-btn span {
    flex: 1;
}

.no-links {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Admin Panel Styles */
.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #27ae60 0%, #16a085 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.admin-sidebar .logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-sidebar .logo h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.admin-sidebar .logo p {
    font-size: 12px;
    color: #bdc3c7;
}

.admin-sidebar nav ul {
    list-style: none;
}

.admin-sidebar nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 14px;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #f39c12;
}

.admin-sidebar nav a i {
    margin-right: 10px;
    width: 20px;
}

.admin-main {
    margin-left: 250px;
    background: #ecf0f1;
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-content {
    padding: 30px;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-header h2 {
    font-size: 22px;
    color: #2c3e50;
    margin: 0;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="color"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #27ae60;
    color: white;
}

.btn-primary:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.btn-success {
    background: #f39c12;
    color: white;
}

.btn-success:hover {
    background: #e67e22;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table thead {
    background: #ecf0f1;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.table th {
    font-weight: 600;
    color: #2c3e50;
}

.table tbody tr:hover {
    background: #f9f9f9;
}

.table a {
    color: #3498db;
    text-decoration: none;
    margin-right: 10px;
}

.table a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-sidebar nav {
        display: flex;
        flex-wrap: wrap;
    }

    .admin-sidebar nav a {
        flex: 1;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 15px;
        text-align: center;
    }

    .admin-sidebar nav a:hover,
    .admin-sidebar nav a.active {
        border-left: none;
        border-bottom-color: #3498db;
    }

    .container {
        padding: 15px;
    }

    .link-btn {
        padding: 12px 15px;
        font-size: 14px;
    }

    .profile-card {
        padding: 30px 15px 20px;
    }

    .avatar {
        width: 100px;
        height: 100px;
        margin: -60px auto 15px;
    }

    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 40px;
        margin: -60px auto 15px;
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 22px;
    }

    .link-btn {
        padding: 12px;
    }

    .link-btn i {
        font-size: 16px;
    }

    .card {
        padding: 15px;
    }

    .table th,
    .table td {
        padding: 8px;
        font-size: 12px;
    }
}
