/* WRAPPER */

.dw-tool-wrapper{
max-width:1000px;
margin:auto;
padding:40px 20px;
}


/* CONTAINER */

.dw-tool-container{
background:#ffffff;
border-radius:28px;
padding:45px;
text-align:center;
box-shadow:
0 20px 40px rgba(0,0,0,0.08),
0 40px 90px rgba(0,0,0,0.12);
transition:.35s;
}

.dw-tool-container:hover{
transform:translateY(-4px);
box-shadow:
0 30px 60px rgba(0,0,0,0.12),
0 60px 120px rgba(0,0,0,0.16);
}

.dark-mode .dw-tool-container{
background:#0f172a;
color:#e2e8f0;
box-shadow:
0 40px 100px rgba(0,0,0,0.8);
}


/* HEADER */

.dw-tool-header h1{
font-size:36px;
margin-bottom:10px;
}

.dw-tool-header p{
color:#64748b;
}

.dark-mode .dw-tool-header p{
color:#94a3b8;
}


/* BUTTON GROUP */

.dw-tool-actions{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:12px;
margin-top:15px;
}


/* APPLE BUTTON */

.dw-btn-apple{
background:linear-gradient(135deg,#2563eb,#1d4ed8);
color:white;
border:none;
padding:13px 26px;
border-radius:16px;
font-weight:600;
cursor:pointer;
transition:.25s;
box-shadow:
0 10px 25px rgba(37,99,235,0.35),
inset 0 1px 0 rgba(255,255,255,0.3);
}

.dw-btn-apple:hover{
transform:translateY(-3px);
box-shadow:
0 20px 45px rgba(37,99,235,0.5),
inset 0 1px 0 rgba(255,255,255,0.4);
}


/* CLEAR BUTTON */

.dw-btn-clear{
background:#e2e8f0;
color:#1e293b;
border:none;
padding:10px 20px;
border-radius:12px;
cursor:pointer;
}


/* INPUT */

.dw-tool-options{
margin:25px 0;
display:flex;
gap:10px;
justify-content:center;
flex-wrap:wrap;
}

.dw-tool-options input{
padding:12px;
border-radius:10px;
border:1px solid #d1d5db;
width:300px;
}


/* STRENGTH BAR */

.dw-strength-box{
margin-top:20px;
}

.dw-strength-bar{
height:10px;
background:#e5e7eb;
border-radius:10px;
overflow:hidden;
margin-bottom:10px;
}

#strengthBar{
height:10px;
width:0%;
background:red;
transition:.3s;
border-radius:10px;
}


/* SUGGESTIONS */

.dw-suggestions{
margin-top:25px;
text-align:left;
}

.dw-suggestions h3{
margin-bottom:10px;
}

.dw-suggestions ul{
padding-left:18px;
}


/* DARK MODE */

.dark-mode{
background:#020617;
color:white;
}

.dark-mode input{
background:#020617;
color:#e2e8f0;
border-color:#334155;
}

.dark-mode .dw-btn-clear{
background:#334155;
color:white;
}


/* APPLE STYLE TOGGLE */

.dw-theme-toggle{
margin-top:12px;
display:flex;
justify-content:center;
align-items:center;
gap:8px;
font-size:14px;
}

.dw-switch{
position:relative;
display:inline-block;
width:46px;
height:24px;
}

.dw-switch input{
display:none;
}

.dw-slider{
position:absolute;
cursor:pointer;
background:#cbd5f5;
border-radius:34px;
top:0;
left:0;
right:0;
bottom:0;
transition:.4s;
}

.dw-slider:before{
position:absolute;
content:"";
height:18px;
width:18px;
left:3px;
bottom:3px;
background:white;
border-radius:50%;
transition:.4s;
}

input:checked + .dw-slider{
background:#2563eb;
}

input:checked + .dw-slider:before{
transform:translateX(22px);
}


/* TABLET */

@media (max-width:1024px){

.dw-tool-container{
padding:35px;
}

.dw-tool-header h1{
font-size:32px;
}

}


/* MOBILE */

@media (max-width:768px){

.dw-tool-wrapper{
padding:30px 15px;
}

.dw-tool-container{
padding:25px;
}

.dw-tool-header h1{
font-size:26px;
}

.dw-tool-actions{
flex-direction:column;
align-items:center;
}

.dw-btn-apple,
.dw-btn-clear{
width:100%;
max-width:260px;
}

.dw-tool-options{
flex-direction:column;
align-items:center;
}

.dw-tool-options input{
width:100%;
max-width:300px;
}

.dw-strength-box{
margin-top:15px;
}

.dw-suggestions{
font-size:14px;
}

}


/* SMALL MOBILE */

@media (max-width:480px){

.dw-tool-header h1{
font-size:22px;
}

.dw-tool-header p{
font-size:14px;
}

.dw-tool-container{
border-radius:20px;
}



}

/* ============================= */
/* DARK MODE TEXT VISIBILITY FIX */
/* ============================= */

.dark-mode .dw-tool-header h1{
color:#f8fafc;
}

.dark-mode .dw-tool-header p{
color:#cbd5f5;
}

.dark-mode .dw-suggestions h3{
color:#f1f5f9;
}

.dark-mode .dw-suggestions li{
color:#e2e8f0;
}

.dark-mode #strengthText{
color:#f1f5f9;
}

.dark-mode #crackTime{
color:#cbd5f5;
}

/* Strength bar background fix in dark mode */

.dark-mode .dw-strength-bar{
background:#334155;
}

/* Input placeholder visibility */

.dark-mode input::placeholder{
color:#94a3b8;
}

