/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Dashboard Layout */
.cd-wrapper {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}
.cd-sidebar {
    width: 250px;
    background: #1a1a1a;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    transition: all 0.3s ease;
}
.cd-sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
}
.cd-nav {
    list-style: none;
    padding: 0;
}
.cd-nav li {
    margin: 10px 0;
}
.cd-nav a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
}
.cd-nav a:hover,
.cd-nav a.active {
    background: #007bff;
    color: #fff;
    border-radius: 5px;
}

/* Sticky Sidebar */
.cd-sidebar.cd-sticky {
    position: fixed;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

/* Main Content */
.cd-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cd-topbar {
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cd-topbar .cd-wallet {
    font-size: 16px;
    font-weight: bold;
}
.cd-profile-menu {
    position: relative;
    cursor: pointer;
}
.cd-profile-menu span {
    display: flex;
    align-items: center;
}
.cd-profile-menu img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.cd-profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 5px;
    width: 180px;
}
.cd-profile-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}
.cd-profile-dropdown a:hover {
    background: #f1f1f1;
}

/* Notification */
.cd-notice {
    background: #fff3cd;
    color: #856404;
    padding: 12px 20px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cd-notice .cd-notice-close {
    cursor: pointer;
    font-weight: bold;
    color: #856404;
}

/* Content Area */
#cd-content {
    padding: 20px;
    background: #fff;
    flex-grow: 1;
}
.cd-loader {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #555;
}

/* Tables */
table.widefat {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
table.widefat th, table.widefat td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
table.widefat th {
    background: #f8f9fa;
    font-weight: bold;
}

/* Buttons */
.button, .cd-btn {
    background: #007bff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.button:hover, .cd-btn:hover {
    background: #0056b3;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .cd-wrapper {
        flex-direction: column;
    }
    .cd-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .cd-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dashboard Wrapper */
.cd-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: #f5f6fa;
}

/* Sidebar */
.cd-sidebar {
    width: 240px;
    background: #1e1e2d;
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px 0;
}
.cd-logo {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}
.cd-nav {
    list-style: none;
    padding: 0;
}
.cd-nav li {
    margin-bottom: 10px;
}
.cd-nav a {
    display: block;
    padding: 12px 20px;
    color: #cfcfd8;
    text-decoration: none;
    transition: 0.3s;
}
.cd-nav a.active,
.cd-nav a:hover {
    background: #0073aa;
    color: #fff;
}

/* Main Section */
.cd-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.cd-topbar {
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
}
.cd-alert {
    background: #ffeb3b;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
}
.cd-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.cd-wallet {
    font-size: 14px;
}
.cd-profile-menu {
    position: relative;
    cursor: pointer;
}
.cd-profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    list-style: none;
    padding: 5px 0;
    width: 150px;
}
.cd-profile-dropdown li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}
.cd-profile-dropdown li a:hover {
    background: #f0f0f0;
}

/* Content Area */
.cd-content {
    padding: 20px;
    background: #fff;
    flex: 1;
}

/* Loader */
.cd-loader {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .cd-wrapper {
        flex-direction: column;
    }
    .cd-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
}

.cd-my-account {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cd-wallet-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.cd-wallet-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #008060;
}

.cd-actions {
    margin-top: 15px;
}

.cd-actions .cd-btn {
    background: #008060;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 0 10px;
    text-decoration: none;
    display: inline-block;
}

.cd-transactions table {
    width: 100%;
    border-collapse: collapse;
}

.cd-transactions th, .cd-transactions td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.cd-form input, .cd-form textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cd-form button {
    background: #008060;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.cd-form button:hover {
    background: #006a50;
}

.cd-success {
    color: green;
    margin: 10px 0;
}

.cd-warning {
    color: orange;
    font-weight: bold;
}

.cd-bank-details {
    background: #f7f7f7;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.cd-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.cd-table th, .cd-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.cd-table th {
    background: #f4f4f4;
}

.cd-analytics {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cd-news {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cd-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cd-news-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cd-news-item h3 a {
    color: #0073aa;
    text-decoration: none;
}

.cd-news-item h3 a:hover {
    text-decoration: underline;
}

.cd-profile {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cd-profile form p {
    margin-bottom: 15px;
}

.cd-profile input[type="text"],
.cd-profile input[type="email"],
.cd-profile input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cd-btn {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cd-btn:hover {
    background: #005f8d;
}
