:root {
    --primary: #4361ee;
    --sidebar-bg: #1e1e2d;
    --bg-color: #f5f8fa;
    --text-dark: #333;
    --text-light: #a1a5b7;
    --white: #ffffff;
    --border: #eff2f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); }
.dashboard-container { display: flex; height: 100vh; }

/* Sidebar */
.sidebar { width: 250px; background-color: var(--sidebar-bg); color: var(--white); display: flex; flex-direction: column; }
.logo { padding: 20px; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-nav { display: flex; flex-direction: column; padding: 20px 0; }
.sidebar-nav a { color: var(--text-light); text-decoration: none; padding: 15px 25px; transition: 0.3s; display: flex; gap: 10px; align-items: center; }
.sidebar-nav a:hover, .sidebar-nav a.active { background-color: rgba(255,255,255,0.05); color: var(--white); border-left: 4px solid var(--primary); }

/* Main Content & Tabs */
.main-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.tab-panel { display: none; width: 100%; }
.tab-panel.active { display: block; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background: var(--white); border-bottom: 1px solid var(--border); }
.search-bar input { border: none; outline: none; padding: 10px; width: 300px; background: var(--bg-color); border-radius: 5px; margin-left: 10px; }
.btn-primary { background: var(--primary); color: var(--white); border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-primary:disabled { background: #999; cursor: not-allowed; }
.w-100 { width: 100%; margin-top: 15px;}
.content-body { padding: 30px; }

/* Grids and Cards */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.max-width-md { max-width: 600px; }
.card { background: var(--white); border-radius: 8px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.mt-15 { margin-top: 15px; }
.form-divider { border: 0; border-top: 1px solid var(--border); margin: 25px 0; }

/* Lists and Badges */
.list-group { list-style: none; margin-top: 15px; }
.list-group li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.badge-count { background: var(--bg-color); color: var(--text-dark); padding: 3px 8px; border-radius: 20px; font-size: 0.8rem; }
.badge-role { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.badge-role.owner { background: #e8fff3; color: #50cd89; }
.badge-role.editor { background: #fff8dd; color: #ffc700; }

/* Table */
.projects-table { width: 100%; background: var(--white); border-radius: 8px; border-collapse: collapse; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.02); margin-top: 20px; }
.projects-table th, .projects-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.projects-table th { background-color: #f9f9f9; color: var(--text-light); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; }
.badge-ecommerce { background: #e8fff3; color: #50cd89; padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; }
.status.active { color: var(--primary); font-weight: bold; }
.btn-icon { background: none; border: none; color: var(--text-light); cursor: pointer; margin-right: 10px; font-size: 1.1rem; }

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: var(--white); padding: 30px; border-radius: 8px; width: 600px; max-width: 90%; max-height: 90vh; overflow-y: auto; position: relative; }
.close { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], select, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; outline: none; }
input[type="file"] { padding: 5px 0; width: 100%; }

/* Status Dropdown */
.status-dropdown { padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; border: 1px solid transparent; cursor: pointer; outline: none; background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); background-repeat: no-repeat; background-position-x: 95%; background-position-y: 50%; padding-right: 25px; }
.status-dropdown.in-development, .status-dropdown.contacted { background-color: #fff8dd; color: #ffc700; border-color: #ffc700; }
.status-dropdown.live, .status-dropdown.new { background-color: #e8fff3; color: #50cd89; border-color: #50cd89; }
.status-dropdown.stopped, .status-dropdown.closed { background-color: #ffe2e5; color: #f1416c; border-color: #f1416c; }

/* Login Screen */
.auth-container { display: flex; height: 100vh; width: 100vw; background: linear-gradient(135deg, #1e1e2d 0%, #11111a 100%); align-items: center; justify-content: center; }
.auth-box { background: var(--white); padding: 50px 40px; border-radius: 16px; width: 420px; max-width: 90%; box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05); }
.auth-box .logo h2 { font-size: 2.2rem; font-weight: 800; background: linear-gradient(90deg, #4361ee, #4cc9f0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 5px; }
.auth-box h3 { color: #a1a5b7; font-size: 1rem; font-weight: 500; margin-bottom: 30px; }
.auth-box .form-group label { font-size: 0.8rem; color: #7e8299; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 8px; }
.auth-box input[type="text"], .auth-box input[type="password"] { background-color: #f5f8fa; border: 1px solid transparent; padding: 14px 16px; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; }
.auth-box input[type="text"]:focus, .auth-box input[type="password"]:focus { background-color: #ffffff; border: 1px solid #4361ee; box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1); outline: none; }
.auth-box .btn-primary { padding: 14px; border-radius: 8px; font-size: 1rem; box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3); transition: transform 0.2s, box-shadow 0.2s; margin-top: 10px; }
.auth-box .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4); }

/* E-COMMERCE PRODUCT THUMBNAIL */
.product-thumb { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
    border-radius: 6px; 
    border: 1px solid var(--border); 
    display: block; 
}

:root {
    --primary: #4361ee;
    --sidebar-bg: #1e1e2d;
    --bg-color: #f5f8fa;
    --text-dark: #333;
    --text-light: #a1a5b7;
    --white: #ffffff;
    --border: #eff2f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); }
.dashboard-container { display: flex; height: 100vh; }

/* Sidebar */
.sidebar { width: 250px; background-color: var(--sidebar-bg); color: var(--white); display: flex; flex-direction: column; }
.logo { padding: 20px; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-nav { display: flex; flex-direction: column; padding: 20px 0; }
.sidebar-nav a { color: var(--text-light); text-decoration: none; padding: 15px 25px; transition: 0.3s; display: flex; gap: 10px; align-items: center; }
.sidebar-nav a:hover, .sidebar-nav a.active { background-color: rgba(255,255,255,0.05); color: var(--white); border-left: 4px solid var(--primary); }

/* Main Content & Tabs */
.main-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.tab-panel { display: none; width: 100%; }
.tab-panel.active { display: block; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background: var(--white); border-bottom: 1px solid var(--border); }
.search-bar input { border: none; outline: none; padding: 10px; width: 300px; background: var(--bg-color); border-radius: 5px; margin-left: 10px; }
.btn-primary { background: var(--primary); color: var(--white); border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-primary:disabled { background: #999; cursor: not-allowed; }
.w-100 { width: 100%; margin-top: 15px;}
.content-body { padding: 30px; }

/* Grids and Cards */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.max-width-md { max-width: 600px; }
.card { background: var(--white); border-radius: 8px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.mt-15 { margin-top: 15px; }
.form-divider { border: 0; border-top: 1px solid var(--border); margin: 25px 0; }

/* Lists and Badges */
.list-group { list-style: none; margin-top: 15px; }
.list-group li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.badge-count { background: var(--bg-color); color: var(--text-dark); padding: 3px 8px; border-radius: 20px; font-size: 0.8rem; }
.badge-role { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.badge-role.owner { background: #e8fff3; color: #50cd89; }
.badge-role.editor { background: #fff8dd; color: #ffc700; }

/* Table */
.projects-table { width: 100%; background: var(--white); border-radius: 8px; border-collapse: collapse; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.02); margin-top: 20px; }
.projects-table th, .projects-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.projects-table th { background-color: #f9f9f9; color: var(--text-light); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; }
.badge-ecommerce { background: #e8fff3; color: #50cd89; padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; }
.status.active { color: var(--primary); font-weight: bold; }
.btn-icon { background: none; border: none; color: var(--text-light); cursor: pointer; margin-right: 10px; font-size: 1.1rem; }

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: var(--white); padding: 30px; border-radius: 8px; width: 600px; max-width: 90%; max-height: 90vh; overflow-y: auto; position: relative; }
.close { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], select, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; outline: none; }
input[type="file"] { padding: 5px 0; width: 100%; }

/* Status Dropdown */
.status-dropdown { padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; border: 1px solid transparent; cursor: pointer; outline: none; background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); background-repeat: no-repeat; background-position-x: 95%; background-position-y: 50%; padding-right: 25px; }
.status-dropdown.in-development, .status-dropdown.contacted { background-color: #fff8dd; color: #ffc700; border-color: #ffc700; }
.status-dropdown.live, .status-dropdown.new { background-color: #e8fff3; color: #50cd89; border-color: #50cd89; }
.status-dropdown.stopped, .status-dropdown.closed { background-color: #ffe2e5; color: #f1416c; border-color: #f1416c; }

/* Login Screen */
.auth-container { display: flex; height: 100vh; width: 100vw; background: linear-gradient(135deg, #1e1e2d 0%, #11111a 100%); align-items: center; justify-content: center; }
.auth-box { background: var(--white); padding: 50px 40px; border-radius: 16px; width: 420px; max-width: 90%; box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05); }
.auth-box .logo h2 { font-size: 2.2rem; font-weight: 800; background: linear-gradient(90deg, #4361ee, #4cc9f0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 5px; }
.auth-box h3 { color: #a1a5b7; font-size: 1rem; font-weight: 500; margin-bottom: 30px; }
.auth-box .form-group label { font-size: 0.8rem; color: #7e8299; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 8px; }
.auth-box input[type="text"], .auth-box input[type="password"] { background-color: #f5f8fa; border: 1px solid transparent; padding: 14px 16px; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; }
.auth-box input[type="text"]:focus, .auth-box input[type="password"]:focus { background-color: #ffffff; border: 1px solid #4361ee; box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1); outline: none; }
.auth-box .btn-primary { padding: 14px; border-radius: 8px; font-size: 1rem; box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3); transition: transform 0.2s, box-shadow 0.2s; margin-top: 10px; }
.auth-box .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4); }

/* E-COMMERCE PRODUCT THUMBNAIL */
.product-thumb { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
    border-radius: 6px; 
    border: 1px solid var(--border); 
    display: block; 
}

/* NEW: Notification Badges */
.badge-alert {
    background: #f1416c;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: auto;
}
.hidden-badge { display: none !important; }